Skip to content
Prev Previous commit
Next Next commit
Moving to auditwheel==5.0.0 (default in the latest manylinux image)
  • Loading branch information
asenyaev committed Nov 11, 2021
commit b408641e253f2853f2d6310c2b3c5ad522b595a8
7 changes: 3 additions & 4 deletions patch_auditwheel_whitelist.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@

policies = None

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

for p in policies:
if p["name"] == "manylinux2014":
p["lib_whitelist"].append("libxcb.so.1")
p["lib_whitelist"].append("libxcb.so.1")

with open(join(dirname(abspath(policy.__file__)), "policy.json"), "w") as f:
with open(join(dirname(abspath(policy.__file__)), "manylinux-policy.json"), "w") as f:
f.write(json.dumps(policies))
8 changes: 4 additions & 4 deletions travis_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ function bdist_wheel_cmd {
CI_BUILD=1 pip wheel --verbose --wheel-dir="$PWD/dist" . $BDIST_PARAMS
cp dist/*.whl $abs_wheelhouse
if [ -z "$IS_OSX" ]; then
TOOLS_PATH=/opt/_internal/tools
/opt/python/cp37-cp37m/bin/python -m venv $TOOLS_PATH
# this path can be changed in the latest manylinux image
TOOLS_PATH=/opt/_internal/pipx/venvs/auditwheel
/opt/python/cp39-cp39/bin/python -m venv $TOOLS_PATH
source $TOOLS_PATH/bin/activate
python$PYTHON_VERSION -m pip install auditwheel==3.2.0
python$PYTHON_VERSION patch_auditwheel_whitelist.py
python patch_auditwheel_whitelist.py
# to avoid issues with numpy wheels
rm /io/wheelhouse/numpy*
deactivate
Expand Down