@@ -5,29 +5,35 @@ set -e -x
55# Install system packages required by our library
66yum install -y cmake openssl-devel gcc automake
77
8- # Ensure a fresh build of rabbitmq-c.
9- (cd /workspace && make submodules)
10- rm -rf /workspace/rabbitmq-c/build
11- (cd /workspace && make rabbitmq-c)
12-
138# Compile wheels
149for PYBIN in /opt/python/* /bin; do
10+ # cp27-cp27mu builds fail with: undefined symbol: PyUnicodeUCS2_AsASCIIString
11+ if [[ " ${PYBIN} " == * " cp27-cp27mu" * ]]; then
12+ continue
13+ fi
14+
15+ # Ensure a fresh build of rabbitmq-c.
16+ rm -rf /workspace/rabbitmq-c/build
1517 (cd /workspace && ${PYBIN} /python setup.py install)
1618 ${PYBIN} /pip wheel /workspace/ -w wheelhouse/
1719done
1820
1921# Bundle external shared libraries into the wheels
20- # ls wheelhouse/*
2122for whl in wheelhouse/* linux* .whl; do
2223 auditwheel repair $whl -w /workspace/wheelhouse/
2324done
2425
2526# Install packages and test
2627for PYBIN in /opt/python/* /bin/; do
27- # vine 5.0.0a1 breaks python2
28+ if [[ " ${PYBIN} " == * " cp27-cp27mu" * ]]; then
29+ continue
30+ fi
31+
32+ # amqp 5.0.0a1 and vine 5.0.0a1 breaks python2
2833 # https://github.com/celery/vine/issues/34
29- if [[ " $PYBIN " == * " python/cp2" * ]]; then
34+ if [[ " ${ PYBIN} " == * " python/cp2" * ]]; then
3035 ${PYBIN} /pip install --force-reinstall " vine==1.3.0"
36+ ${PYBIN} /pip install --force-reinstall " amqp==2.5.2"
3137 fi
3238
3339 ${PYBIN} /pip install librabbitmq -f /workspace/wheelhouse
0 commit comments