Skip to content

Commit

Permalink
Use forked version of auditwheel with correct rpath patching (#16777)
Browse files Browse the repository at this point in the history
  • Loading branch information
alopezz authored Feb 2, 2024
1 parent 0e571c4 commit aa23315
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .builders/images/runner_dependencies.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
python-dotenv==1.0.0
urllib3==2.2.0
auditwheel==5.4.0; sys_platform == 'linux'
auditwheel @ git+https://github.com/DataDog/auditwheel.git@64f212de1791858c21657763385b3879f93cdb04; sys_platform == 'linux'
delvewheel==1.5.2; sys_platform == 'win32'
delocate==0.10.7; sys_platform == 'darwin'
10 changes: 6 additions & 4 deletions .builders/scripts/repair_wheels.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,21 +60,22 @@ def wheel_was_built(wheel: Path) -> bool:

def repair_linux(source_dir: str, built_dir: str, external_dir: str) -> None:
from auditwheel.patcher import Patchelf
from auditwheel.policy import get_policy_by_name
from auditwheel.policy import WheelPolicies
from auditwheel.repair import repair_wheel
from auditwheel.wheel_abi import NonPlatformWheel

exclusions = [
exclusions = frozenset({
# pymqi
'libmqic_r.so',
# confluent_kafka
# We leave cyrus-sasl out of the wheel because of the complexity involved in bundling it portably.
# This means the confluent-kafka wheel will have a runtime dependency on this library
'libsasl2.so.3',
]
})

# Hardcoded policy to the minimum we need to currently support
policy = get_policy_by_name('manylinux2010_x86_64')
policies = WheelPolicies()
policy = policies.get_policy_by_name('manylinux2010_x86_64')
abis = [policy['name'], *policy['aliases']]

for wheel in iter_wheels(source_dir):
Expand All @@ -86,6 +87,7 @@ def repair_linux(source_dir: str, built_dir: str, external_dir: str) -> None:

try:
repair_wheel(
policies,
str(wheel),
abis=abis,
lib_sdir='.libs',
Expand Down

0 comments on commit aa23315

Please sign in to comment.