summaryrefslogtreecommitdiff
path: root/build-manylinux1-wheels.sh
blob: c0a39014a9e782dfa4186528353f93cbf4916fb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
# Script modified from https://github.com/pypa/python-manylinux-demo
set -e -x

# Install a system package required by our library
yum  install -y librabbitmq-devel make librabbitmq python-devel gcc automake


# Compile wheels
for PYBIN in /opt/python/*/bin; do
    #${PYBIN}/pip install -r /workspace/dev-requirements.txt
    ${PYBIN}/pip wheel /workspace/ -w wheelhouse/
done

# Bundle external shared libraries into the wheels
#ls wheelhouse/*
for whl in wheelhouse/*linux*.whl; do
    auditwheel repair $whl -w /workspace/wheelhouse/
done

# Install packages and test
for PYBIN in /opt/python/*/bin/; do
    ${PYBIN}/pip install librabbitmq -f /workspace/wheelhouse
    ${PYBIN}/python -c "import librabbitmq"
    #(cd $HOME; ${PYBIN}/nosetests pymanylinuxdemo)
done