Skip to content

Commit 5152069

Browse files
committed
try to whitelist libxcb.so.1
1 parent 3a85591 commit 5152069

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

patch_auditwheel_whitelist.py

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
from os.path import join, dirname, abspath
2+
import json
3+
4+
from auditwheel import policy
5+
6+
policies = None
7+
8+
with open(join(dirname(abspath(policy.__file__)), "policy.json")) as f:
9+
policies = json.load(f)
10+
11+
for p in policies:
12+
if p["name"] == "manylinux2014":
13+
p["lib_whitelist"].append("libxcb.so.1")
14+
15+
with open(join(dirname(abspath(policy.__file__)), "policy.json"), "w") as f:
16+
f.write(json.dumps(policies))

travis_config.sh

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ else
2626
echo " > Linux environment "
2727
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/Qt5.15.0/lib
2828
export MAKEFLAGS="-j$(grep -E '^processor[[:space:]]*:' /proc/cpuinfo | wc -l)"
29+
python patch_auditwheel_whitelist.py
2930
fi
3031

3132
if [ -n "$IS_OSX" ]; then

0 commit comments

Comments
 (0)