Skip to content

Commit

Permalink
Fix missing swig
Browse files Browse the repository at this point in the history
  • Loading branch information
ezralanglois committed Jul 13, 2024
1 parent a3d5e86 commit 0c4d365
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-2019, macOS-latest, macOS-13]
os: [ubuntu-latest, windows-2019, macOS-13]
pyver: ['3.8', '3.9', '3.10', '3.11', '3.12']

steps:
Expand Down
4 changes: 1 addition & 3 deletions tools/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,7 @@ elif [ "$PYTHON_VERSION" != "" ] && [ "$PYTHON_VERSION" != "Disable" ] && [ "$PY
swig_bin=$(ls ./usr/lib/python3.*/site-packages/swig/data/bin/swig)
swig_path=$(dirname $swig_bin)
swig_dir=$(dirname $swig_path)
export PATH=${swig_path}:$PATH
export SWIG_DIR=${swig_dir}/share
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 "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_DIR=${swig_dir} -DSWIG_EXECUTABLE=${swig_bin}
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}
run "Build Wheel $py_ver" cmake --build $BUILD_PATH --target package_wheel -- -j${THREAD_COUNT}
Expand Down

0 comments on commit 0c4d365

Please sign in to comment.