From e239693b86545207990845ee3d020f56be57f8ad Mon Sep 17 00:00:00 2001 From: Alex Lopez Date: Wed, 24 Jan 2024 17:07:35 +0100 Subject: [PATCH] Remove absolute rpaths from bundled libraries --- .builders/images/runner_dependencies.txt | 3 ++- .builders/scripts/repair_wheels.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.builders/images/runner_dependencies.txt b/.builders/images/runner_dependencies.txt index 192632213f618b..657c0f71a87377 100644 --- a/.builders/images/runner_dependencies.txt +++ b/.builders/images/runner_dependencies.txt @@ -2,4 +2,5 @@ python-dotenv==1.0.0 urllib3==2.1.0 auditwheel==5.4.0; sys_platform == 'linux' delvewheel==1.5.2; sys_platform == 'win32' -delocate==0.10.7; sys_platform == 'darwin' +# Custom patch to be able to strip (sanitize) absolute rpaths +delocate @ git+https://github.com/DataDog/delocate.git@8423951d8ff69bb5f3c7a1c44689c59b5c4ea4e3; sys_platform == 'darwin' diff --git a/.builders/scripts/repair_wheels.py b/.builders/scripts/repair_wheels.py index 16ae60c1d9ee3a..7c3cd8c6baf0c0 100644 --- a/.builders/scripts/repair_wheels.py +++ b/.builders/scripts/repair_wheels.py @@ -164,6 +164,7 @@ def copy_filt_func(libname): str(wheel), os.path.join(output_dir, os.path.basename(wheel)), copy_filt_func=copy_filt_func, + sanitize_rpaths=True, ) print('Repaired wheel') if copied_libs: