From 28b4fcafefaed77ec298457014146ca07d96242b Mon Sep 17 00:00:00 2001 From: rlanglois Date: Sun, 14 Jul 2024 20:00:12 -0700 Subject: [PATCH] Debug swig --- tools/package.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tools/package.sh b/tools/package.sh index db8d60d0b..6451c00b9 100644 --- a/tools/package.sh +++ b/tools/package.sh @@ -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}