diff --git a/nfstream/engine/dependencies/build.sh b/nfstream/engine/dependencies/build.sh index 7953d14..e51eedb 100755 --- a/nfstream/engine/dependencies/build.sh +++ b/nfstream/engine/dependencies/build.sh @@ -1,4 +1,3 @@ -#!/bin/sh #----------------------------------------------------------------------------------------------------------------------- # build.sh # Copyright (C) 2019-22 - NFStream Developers @@ -61,8 +60,8 @@ build_libndpi() { echo "Compiling libndpi" echo "---------------------------------------------------------------------------------------------------------------" cd nDPI - ./autogen.sh --with-local-libgcrypt - ./configure CFLAGS="-I/tmp/nfstream_build/usr/local/include" LDFLAGS="-L/tmp/nfstream_build/usr/local/lib" + ./autogen.sh + ./configure CFLAGS="-I/tmp/nfstream_build/usr/local/include" LDFLAGS="-L/tmp/nfstream_build/usr/local/lib" --with-local-libgcrypt cd src/lib make cd ../.. @@ -79,9 +78,5 @@ build_libgpgerror build_libgcrypt build_libndpi -# Remove temporary build directory -rm -rf /tmp/nfstream_build - - diff --git a/setup.py b/setup.py index 17b37c7..5ab2d5f 100644 --- a/setup.py +++ b/setup.py @@ -80,7 +80,7 @@ class BuildNativeCommand(build_ext): msys2 = shutil.which('msys2') subprocess.check_call([msys2, "-c", build_script_command]) else: - subprocess.check_call([str(BUILD_SCRIPT_PATH)]) + subprocess.check_call([str(BUILD_SCRIPT_PATH)], shell=True) # Build engine setup_engine_cc() build_ext.run(self)