patch_auditwheel_whitelist.py 401 字节
Newer Older
1 2 3 4 5 6 7
from os.path import join, dirname, abspath
import json

from auditwheel import policy

policies = None

8
with open(join(dirname(abspath(policy.__file__)), "manylinux-policy.json")) as f:
9 10 11
    policies = json.load(f)

for p in policies:
12
    p["lib_whitelist"].append("libxcb.so.1")
13

14
with open(join(dirname(abspath(policy.__file__)), "manylinux-policy.json"), "w") as f:
15
    f.write(json.dumps(policies))