Pin auditwheel to 1.5.0 for virtualenv.

PiperOrigin-RevId: 236587064
This commit is contained in:
Yifei Feng 2019-03-03 21:32:13 -08:00 committed by TensorFlower Gardener
parent 2ed8375ef7
commit 7af99a4a4d

View File

@ -664,7 +664,10 @@ for WHL_PATH in $(ls ${PIP_WHL_DIR}/${PROJECT_NAME}*.whl); do
# Repair the wheels for cpu manylinux1
echo "auditwheel repairing ${WHL_PATH}"
pip show auditwheel
sudo pip3 install auditwheel==1.5.0
# If in virtualenv, re-pin auditwheel to version 1.5.0
if [ $(python -c 'import sys; print ("1" if hasattr(sys, "real_prefix") else "0")') == "1" ]; then
pip install auditwheel==1.5.0
fi
auditwheel --version
auditwheel repair -w "${WHL_DIR}" "${WHL_PATH}"