From 1e164aeddddcb59aff815ff04f2e11d2c0a3c77e Mon Sep 17 00:00:00 2001 From: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com> Date: Thu, 28 Sep 2023 19:13:01 +0530 Subject: [PATCH] #3049 add custom wheel repair command for Linux --- .github/workflows/publish_pypi.yml | 3 +++ 1 file changed, 3 insertions(+) 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 &&