Skip to content

Commit f63c0fc

Browse files
committed
Restored patch auditwheels.
1 parent 0821d40 commit f63c0fc

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

patch_auditwheel_whitelist.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
from os.path import join, dirname, abspath
2+
import json
3+
4+
from auditwheel import policy
5+
6+
def add_whitelisted_libs():
7+
policies = None
8+
9+
with open(join(dirname(abspath(policy.__file__)), "manylinux-policy.json")) as f:
10+
policies = json.load(f)
11+
12+
for p in policies:
13+
p["lib_whitelist"].append("libxcb.so.1")
14+
15+
with open(join(dirname(abspath(policy.__file__)), "manylinux-policy.json"), "w") as f:
16+
f.write(json.dumps(policies))
17+
18+
if __name__ == '__main__':
19+
add_whitelisted_libs()

travis_config.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ function bdist_wheel_cmd {
2323
TOOLS_PATH=/opt/_internal/pipx/venvs/auditwheel
2424
/opt/python/cp39-cp39/bin/python -m venv $TOOLS_PATH
2525
source $TOOLS_PATH/bin/activate
26+
python patch_auditwheel_whitelist.py
2627
deactivate
2728
fi
2829
if [ -n "$USE_CCACHE" -a -z "$BREW_BOOTSTRAP_MODE" ]; then ccache -s; fi

0 commit comments

Comments
 (0)