author Philippe Pepiot <>
Wed, 06 Nov 2019 11:49:59 +0100
changeset 870 4e54f0b7946f
parent 868 3ee87bec4482
child 885 6db0f3b97ff8
permissions -rwxr-xr-x
Add python_requires and python3 only specifiers This allow pip to install a older python2 compatible package if running with python2. The "Programming Language :: Python :: 3 :: Only" is just for pypi statistics AFAIK.


set -ex

mkdir -p dist
if ! test -e /.dockerenv; then
  exec docker run --rm -it -v $(pwd):/mnt/host/rql sh /mnt/host/rql/$0

cd /mnt/host
curl -L$VERSION.tar.gz | tar -xzf -
cd gecode-release-$VERSION
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 $PYBINS; do
    "${PYBIN}/pip" wheel /mnt/host/rql -w /wheelhouse

# Bundle external shared libraries into the wheels
for whl in /wheelhouse/rql*.whl; do
    auditwheel repair "$whl" -w /wheelhouse

# Install packages and test
for PYBIN in $PYBINS; do
    "${PYBIN}/pip" install pytest
    "${PYBIN}/pip" install rql --no-index -f /wheelhouse
    echo "************  test on $PYBIN"
    (cd "/mnt/host"; "${PYBIN}/py.test" rql)
mv /wheelhouse/rql*manylinux*.whl /mnt/host/rql/dist/