Skip to content

Commit

Permalink
ensure all versions are built
Browse files Browse the repository at this point in the history
  • Loading branch information
scottbelden committed Nov 6, 2019
1 parent 6905437 commit e62cdb9
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .travis_build_wheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@ cd `dirname $0`
TRAVIS_PYTHON_VERSION=$1
TRAVIS_PYTHON_VERSION=${TRAVIS_PYTHON_VERSION/.}

/opt/python/*${TRAVIS_PYTHON_VERSION}*/bin/pip install cython
FASTAVRO_USE_CYTHON=1 /opt/python/*${TRAVIS_PYTHON_VERSION}*/bin/python setup.py bdist_wheel
versions="cp${TRAVIS_PYTHON_VERSION}-cp${TRAVIS_PYTHON_VERSION}
cp${TRAVIS_PYTHON_VERSION}-cp${TRAVIS_PYTHON_VERSION}m
cp${TRAVIS_PYTHON_VERSION}-cp${TRAVIS_PYTHON_VERSION}mu"

# Also produce a wheel for wide-char distributions.
if ls /opt/python/*${TRAVIS_PYTHON_VERSION}*mu &> /dev/null; then
FASTAVRO_USE_CYTHON=1 /opt/python/*${TRAVIS_PYTHON_VERSION}*mu/bin/python setup.py bdist_wheel
fi
for version in ${versions}; do
echo $version
if ls /opt/python/${version} &> /dev/null; then
/opt/python/${version}/bin/pip install cython
FASTAVRO_USE_CYTHON=1 /opt/python/${version}/bin/python setup.py bdist_wheel
fi
done

# Fix wheel
for whl in dist/*.whl; do
Expand Down

0 comments on commit e62cdb9

Please sign in to comment.