Auditwheel issue fix.

PiperOrigin-RevId: 236689697
This commit is contained in:
A. Unique TensorFlower 2019-03-04 11:18:59 -08:00 committed by TensorFlower Gardener
parent 4f04620472
commit 6163623e0e

View File

@ -37,9 +37,9 @@
# input tags for `--test_filter_tags` flag. # input tags for `--test_filter_tags` flag.
# e.g. TF_TEST_FILTER_TAGS="no_pip,-nomac,no_oss" # e.g. TF_TEST_FILTER_TAGS="no_pip,-nomac,no_oss"
# TF_TEST_TARGETS: Bazel test targets. # TF_TEST_TARGETS: Bazel test targets.
# e.g. TF_TEST_TARGETS="//tensorflow/contrib/... \ # e.g. TF_TEST_TARGETS="//tensorflow/... \
# //tensorflow/... \ # -//tensorflow/contrib/... \
# //tensorflow/python/..." # -//tensorflow/python/..."
# TF_PIP_TESTS: PIP tests to run. If NOT specified, skips all tests. # TF_PIP_TESTS: PIP tests to run. If NOT specified, skips all tests.
# e.g. TF_PIP_TESTS="test_pip_virtualenv_clean \ # e.g. TF_PIP_TESTS="test_pip_virtualenv_clean \
# test_pip_virtualenv_clean \ # test_pip_virtualenv_clean \
@ -663,6 +663,10 @@ for WHL_PATH in $(ls ${PIP_WHL_DIR}/${PROJECT_NAME}*.whl); do
if [[ ${OS_TYPE} == "ubuntu" ]]; then if [[ ${OS_TYPE} == "ubuntu" ]]; then
# Repair the wheels for cpu manylinux1 # Repair the wheels for cpu manylinux1
echo "auditwheel repairing ${WHL_PATH}" echo "auditwheel repairing ${WHL_PATH}"
if [[ ${PY_MAJOR_MINOR_VER} == "3.6" ]]; then
# Revert pyenv changes, so that auditwheel can work properly.
pyenv global system
fi
pip show auditwheel pip show auditwheel
set +e set +e
pip install auditwheel==1.5.0 pip install auditwheel==1.5.0