From 23b0c8096788334aca4d683e3e1f806be6df0ffc Mon Sep 17 00:00:00 2001 From: Robert Nishihara Date: Fri, 2 Jun 2017 13:20:34 -0700 Subject: [PATCH] Rename linux wheels so they can be uploaded to PyPI. (#629) --- python/build-wheel-manylinux1.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/python/build-wheel-manylinux1.sh b/python/build-wheel-manylinux1.sh index 5a11a8fa7..254916940 100755 --- a/python/build-wheel-manylinux1.sh +++ b/python/build-wheel-manylinux1.sh @@ -21,3 +21,9 @@ for PYTHON in cp27-cp27mu cp33-cp33m cp34-cp34m cp35-cp35m cp36-cp36m; do mv dist/*.whl ../.whl/ popd done + +# Rename the wheels so that they can be uploaded to PyPI. TODO(rkn): This is a +# hack, we should use auditwheel instead. +pushd .whl + find *.whl -exec bash -c 'mv $1 ${1//linux/manylinux1}' bash {} \; +popd