Stop building python2 wheels and workaround broken py38 wheel
authorPhilippe Pepiot <philippe.pepiot@logilab.fr>
Wed, 06 Nov 2019 11:27:36 +0100
changeset 868 3ee87bec4482
parent 867 27ff3634ada0
child 869 d521e746de34
Stop building python2 wheels and workaround broken py38 wheel This script is used to publish wheel binary packages to pypi. Since we're going to remove python2 support, stop generating wheels for python2. Also py38 is out and our wheel doesn't compile with py38 due to a bug of logilab-common. Waiting a fix, don't build wheel for py38. % docker run --rm -it quay.io/pypa/manylinux1_x86_64 ls -1A /opt/python cp27-cp27m cp27-cp27mu cp34-cp34m cp35-cp35m cp36-cp36m cp37-cp37m cp38-cp38
build_wheel.sh
--- a/build_wheel.sh	Wed Nov 06 11:20:56 2019 +0100
+++ b/build_wheel.sh	Wed Nov 06 11:27:36 2019 +0100
@@ -15,9 +15,11 @@
 make -j2
 make install
 
+PYBINS="/opt/python/cp34*/bin /opt/python/cp35*/bin /opt/python/cp36*/bin /opt/python/cp37*/bin"
+
 mkdir -p /wheelhouse
 # Compile wheels
-for PYBIN in /opt/python/*/bin; do
+for PYBIN in $PYBINS; do
     "${PYBIN}/pip" wheel /mnt/host/rql -w /wheelhouse
 done
 
@@ -27,10 +29,9 @@
 done
 
 # Install packages and test
-for PYBIN in /opt/python/*/bin/; do
+for PYBIN in $PYBINS; do
     "${PYBIN}/pip" install pytest
     "${PYBIN}/pip" install rql --no-index -f /wheelhouse
-    "${PYBIN}/python" -c 'import sys; assert sys.version_info[:2] == (2, 7)' && "${PYBIN}/pip" install unittest2
     echo "************  test on $PYBIN"
     (cd "/mnt/host"; "${PYBIN}/py.test" rql)
 done