Skip to content

Commit

Permalink
Allow pcs to find libpcap on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
lc525 committed Jun 27, 2017
1 parent a4cfe48 commit bb08b12
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions setup.py
Expand Up @@ -84,6 +84,7 @@ def _pcap_config(self, dirs=[ None ]):
for sd in ('lib', ''):
for lib in (('pcap', 'libpcap.a'),
('pcap', 'libpcap.dylib'),
('pcap', 'libpcap.so'),
('wpcap', 'wpcap.lib')):
if os.path.exists(os.path.join(d, sd, lib[1])):
cfg['library_dirs'] = [ os.path.join(d, sd) ]
Expand Down

0 comments on commit bb08b12

Please sign in to comment.