From 13cb12aeec750115352c4798f6a7847301eabc8e Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Fri, 28 Feb 2020 19:26:57 -0500 Subject: [PATCH] Use latest wheel to make Windows 3.8 work. #949 --- Makefile | 3 --- ci/manylinux.sh | 10 ++++++++++ requirements/wheel.pip | 3 +-- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 368a07ec8..e1675d9b1 100644 --- a/Makefile +++ b/Makefile @@ -101,9 +101,6 @@ wheel: ## Make the wheels for distribution. kit_linux: ## Make the Linux wheels. $(RUN_MANYLINUX_X86) build $(RUN_MANYLINUX_I686) build - # The manylinux image has Python 3.4, but we don't support it, delete - # those wheels. - rm -f dist/*cp34* kit_upload: ## Upload the built distributions to PyPI. twine upload --verbose dist/* diff --git a/ci/manylinux.sh b/ci/manylinux.sh index 99ea598ec..c5dc42a30 100755 --- a/ci/manylinux.sh +++ b/ci/manylinux.sh @@ -16,7 +16,13 @@ if [[ $action == "build" ]]; then # Compile wheels cd /io for PYBIN in /opt/python/*/bin; do + if [[ $PYBIN == *cp34* ]]; then + # manylinux docker images have Python 3.4, but we don't use it. + continue + fi "$PYBIN/pip" install -r requirements/wheel.pip + # pin so auditwheel will work: https://github.com/pypa/auditwheel/issues/102 + "$PYBIN/pip" install wheel==0.31.1 "$PYBIN/python" setup.py clean -a "$PYBIN/python" setup.py bdist_wheel -d ~/wheelhouse/ done @@ -30,6 +36,10 @@ if [[ $action == "build" ]]; then elif [[ $action == "test" ]]; then # Create "pythonX.Y" links for PYBIN in /opt/python/*/bin/; do + if [[ $PYBIN == *cp34* ]]; then + # manylinux docker images have Python 3.4, but we don't use it. + continue + fi PYNAME=$("$PYBIN/python" -c "import sys; print('python{0[0]}.{0[1]}'.format(sys.version_info))") ln -sf "$PYBIN/$PYNAME" /usr/local/bin/$PYNAME done diff --git a/requirements/wheel.pip b/requirements/wheel.pip index 5dba911f0..abef9db4d 100644 --- a/requirements/wheel.pip +++ b/requirements/wheel.pip @@ -4,5 +4,4 @@ # Things needed to make wheels for coverage.py setuptools==41.4.0 -# pin so auditwheel will work: https://github.com/pypa/auditwheel/issues/102 -wheel==0.31.1 +wheel==0.34.2