author Philippe Pepiot <>
Wed, 06 Nov 2019 11:13:17 +0100
changeset 865 c8d7aa381fcb
parent 818 7f89d2d976e7
child 868 3ee87bec4482
permissions -rwxr-xr-x
Drop rpm packaging This packaging (if it works) only work for python2 and we're going to drop python2 support. I don't have an rpm build environment and I don't known how to test this, so just drop the spec file and let someone revive this if needed.


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

mkdir -p /wheelhouse
# Compile wheels
for PYBIN in /opt/python/*/bin; 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 /opt/python/*/bin/; 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)
mv /wheelhouse/rql*manylinux*.whl /mnt/host/rql/dist/