Skip to content

Commit

Permalink
Merge pull request #34 from segevfiner/setup-py-fix
Browse files Browse the repository at this point in the history
Fix x64 build in setup.py for the no WPDPACK_BASE env var set case
  • Loading branch information
asolino authored Oct 2, 2017
2 parents 8fd9408 + f253bc2 commit 90a53f9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@
# WinPcap include files
include_dirs.append(r'c:\wpdpack\Include')
# WinPcap library files
library_dirs.append(r'c:\wpdpack\Lib')
if sys.maxsize > 2**32: # x64 Python interpreter
library_dirs.append(r'c:\wpdpack\Lib\x64')
else: # x86 Python interpreter
library_dirs.append(r'c:\wpdpack\Lib')
libraries = ['wpcap', 'packet', 'ws2_32']
else:
libraries = ['pcap', 'stdc++']
Expand Down

0 comments on commit 90a53f9

Please sign in to comment.