Skip to content

Commit

Permalink
Debug swig
Browse files Browse the repository at this point in the history
  • Loading branch information
ezralanglois committed Jul 15, 2024
1 parent b344955 commit 28b4fca
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tools/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -253,10 +253,15 @@ elif [ "$PYTHON_VERSION" != "" ] && [ "$PYTHON_VERSION" != "Disable" ] && [ "$PY
python -c "import wheel"
# pip install wheel=0.30.0
fi
pip install swig==4.0.2 --prefix=$(pwd)/usr
swig_bin=$(ls ./usr/lib/python3.*/site-packages/swig/data/bin/swig)
pip install swig==4.0.2 --prefix="$(pwd)/usr"
# ./usr/lib/python3.9/site-packages/swig/data/share/swig/4.0.2/
swig_bin=$(ls $(pwd)/usr/lib/python3.*/site-packages/swig/data/bin/swig)
swig_path=$(dirname $swig_bin)
swig_dir=$(dirname $swig_path)/share/swig/4.0.2/
${swig_bin} -version
echo "${swig_bin}"
echo "${swig_dir}"
ls ${swig_dir}
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 -DSWIG_EXECUTABLE=${swig_bin} -DSWIG_DIR=${swig_dir}
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}
Expand Down

0 comments on commit 28b4fca

Please sign in to comment.