Skip to content

Commit

Permalink
Prepare win32 support.
Browse files Browse the repository at this point in the history
  • Loading branch information
aouinizied committed Dec 17, 2019
1 parent 31962ea commit 601a32b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 deletions.
3 changes: 1 addition & 2 deletions MANIFEST.in
@@ -1,2 +1 @@
include nfstream/libs/libndpi.so
include nfstream/libs/libndpi.a
include nfstream/libs/libndpi.so
25 changes: 12 additions & 13 deletions setup.py
Expand Up @@ -53,19 +53,18 @@ def run(self):

class BuildNdpiCommand(build_ext):
def run(self):
if os.name == 'posix':
subprocess.check_call(['git', 'clone', '--branch', '3.0-stable', 'https://github.com/aouinizied/nDPI.git'])
os.chdir('nDPI/')
subprocess.check_call(['./autogen.sh'])
subprocess.check_call(['./configure'])
subprocess.check_call(['make'])
os.chdir('src/')
os.chdir('lib/')
shutil.copy2('libndpi.so', '../../../nfstream/libs/')
os.chdir('..')
os.chdir('..')
os.chdir('..')
shutil.rmtree('nDPI/', ignore_errors=True)
subprocess.check_call(['git', 'clone', '--branch', '3.0-stable', 'https://github.com/aouinizied/nDPI.git'])
os.chdir('nDPI/')
subprocess.check_call(['./autogen.sh'])
subprocess.check_call(['./configure'])
subprocess.check_call(['make'])
os.chdir('src/')
os.chdir('lib/')
shutil.copy2('libndpi.so', '../../../nfstream/libs/')
os.chdir('..')
os.chdir('..')
os.chdir('..')
shutil.rmtree('nDPI/', ignore_errors=True)
build_ext.run(self)


Expand Down

0 comments on commit 601a32b

Please sign in to comment.