#!/bin/bash
set -e -x

cd /io

# test and compile wheels
for PYBIN in /opt/python/*/bin/; do
    ${PYBIN}/pip install -r /io/dev-requirements.txt
    ${PYBIN}/pip wheel /io/ -w /tmp/wheelhouse/
done

# Bundle external shared libraries into the wheels
for whl in /tmp/wheelhouse/bencoder*.whl; do
    auditwheel repair $whl -w /io/wheelhouse/
done

cp /tmp/wheelhouse/ordereddict* /io/wheelhouse

# Install packages and test
for PYBIN in /opt/python/*/bin/; do
    ${PYBIN}/pip install bencoder.pyx --no-index -f /io/wheelhouse
    (cd $HOME; ${PYBIN}/nosetests bencoder.pyx)
done

#!/bin/bash
set -e -x

cd /io

# test and compile wheels
for PYBIN in /opt/python/*/bin/; do
    ${PYBIN}/pip install -r /io/dev-requirements.txt
    ${PYBIN}/pip wheel /io/ -w /tmp/wheelhouse/
done

# Bundle external shared libraries into the wheels
for whl in /tmp/wheelhouse/bencoder*.whl; do
    auditwheel repair $whl -w /io/wheelhouse/
done

cp /tmp/wheelhouse/ordereddict* /io/wheelhouse

# Install packages and test
for PYBIN in /opt/python/*/bin/; do
    ${PYBIN}/pip install bencoder.pyx --no-index -f /io/wheelhouse
    (cd $HOME; ${PYBIN}/nosetests bencoder)
done

Fix package name in build script
Fix package name in build script
