diff --git a/tools/package.sh b/tools/package.sh index 3b16ecf37..2420db853 100644 --- a/tools/package.sh +++ b/tools/package.sh @@ -252,6 +252,8 @@ elif [ "$PYTHON_VERSION" != "" ] && [ "$PYTHON_VERSION" != "Disable" ] && [ "$PY python -c "import wheel" # pip install wheel=0.30.0 fi + pip install swig --prefix ./usr + export PATH=$(pwd)/usr/bin:$PATH run "Configure $py_ver" cmake $SOURCE_PATH -B${BUILD_PATH} ${CMAKE_EXTRA_FLAGS} -DENABLE_CSHARP=OFF -DENABLE_PYTHON_DYNAMIC_LOAD=ON -DPython_EXECUTABLE=`which python` -DSKIP_PACKAGE_ALL_WHEEL=ON -DPYTHON_WHEEL_PREFIX=${ARTIFACT_PATH}/tmp run "Build $py_ver" cmake --build $BUILD_PATH -- -j${THREAD_COUNT} run "Test $py_ver" cmake --build $BUILD_PATH --target check_python -- -j${THREAD_COUNT}