diff --git a/.github/workflows/publish_pypi.yml b/.github/workflows/publish_pypi.yml index 08025195df..ba797f2b58 100644 --- a/.github/workflows/publish_pypi.yml +++ b/.github/workflows/publish_pypi.yml @@ -101,6 +101,9 @@ jobs: CIBW_BEFORE_BUILD_LINUX: > python -m pip install cmake casadi numpy && scripts/fix_casadi_rpath_linux.sh + # override; point to casadi install path so that it can be found by the repair command + CIBW_REPAIR_WHEEL_COMMAND_LINUX: > + LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:$(python -c 'import casadi; print(casadi.__path__[0])')" auditwheel repair -w {dest_dir} {wheel} CIBW_BEFORE_BUILD_MACOS: > python -m pip install cmake casadi numpy &&