<commit_before>#!/bin/bash
set -e -x

SUPPORTED_PYTHONS="cp27-cp27mu cp34-cp34m cp35-cp35m cp36-cp36m cp37-cp37m"

ls -la /io

# Compile wheels
for PYVER in $SUPPORTED_PYTHONS; do
    rm -rf /io/Setup /io/build/
    PYBIN="/opt/python/${PYVER}/bin"
    ${PYBIN}/pip wheel /io/ -w wheelhouse/
done

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

# Dummy options for headless testing
export SDL_AUDIODRIVER=disk
export SDL_VIDEODRIVER=dummy

# Install packages and test
for PYVER in $SUPPORTED_PYTHONS; do
    PYBIN="/opt/python/${PYVER}/bin"
    ${PYBIN}/pip install cffi
    ${PYBIN}/pip install pymunk --no-index -f /io/tools/manylinux-build/wheelhouse
    # TODO: pymunk doesn't bundle tests in the package.
    # (cd $HOME; ${PYBIN}/python -m pygame.tests --exclude opengl,music)
done

echo "Here are the binary wheels for linux:"
ls /io/tools/manylinux-build/wheelhouse<commit_msg>Build manylinux wheels on travis and with tox.<commit_after>#!/bin/bash
set -e -x

SUPPORTED_PYTHONS="cp27-cp27mu cp34-cp34m cp35-cp35m cp36-cp36m cp37-cp37m"

ls -la /io

# Compile wheels
for PYVER in $SUPPORTED_PYTHONS; do
    rm -rf /io/Setup /io/build/
    PYBIN="/opt/python/${PYVER}/bin"
    ${PYBIN}/pip wheel /io/ -w wheelhouse/
done

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

# Dummy options for headless testing
export SDL_AUDIODRIVER=disk
export SDL_VIDEODRIVER=dummy

# Install packages and test
# for PYVER in $SUPPORTED_PYTHONS; do
#     PYBIN="/opt/python/${PYVER}/bin"
#     ${PYBIN}/pip install cffi
#     ${PYBIN}/pip install pymunk --no-index -f /io/tools/manylinux-build/wheelhouse
#     # TODO: pymunk doesn't bundle tests in the package.
#     #       Maybe we can still test using the test folder?
#     # (cd $HOME; ${PYBIN}/python -m pygame.tests --exclude opengl,music)
# done

echo "Here are the binary wheels for linux:"
ls /io/tools/manylinux-build/wheelhouse
{'fraction_non_alphanumeric': 0.11706161137440758, 'fraction_numerical': 0.018957345971563982, 'mean_word_length': 3.599128540305011, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5699419', 'n_tokens_mistral': 813, 'n_tokens_neox': 769, 'n_words': 219}