add build scripts for creating manylinux1 wheels (#89)

* add build scripts for creating manylinux1 wheels

* update manifest to make check-manifest happy

* quote some things

* more review feedback
This commit is contained in:
Paul Kehrer 2016-12-17 13:24:23 -06:00 committed by Alex Gaynor
parent f5dcc37457
commit 044605b687
3 changed files with 22 additions and 1 deletions

View File

@ -6,6 +6,8 @@ include src/build_bcrypt.py
recursive-include src/_csrc *
recursive-include tests *.py
exclude requirements.txt tasks.py .travis.yml
exclude requirements.txt tasks.py .travis.yml wheel-scripts
recursive-exclude wheel-scripts *
prune .travis

16
wheel-scripts/build_wheels.sh Executable file
View File

@ -0,0 +1,16 @@
#!/bin/bash
set -x -e
for PYBIN in /opt/python/*/bin; do
"${PYBIN}"/pip install cffi six -f /io/wheelhouse/
"${PYBIN}"/pip wheel --no-deps bcrypt -w /wheelhouse/
done
for whl in /wheelhouse/bcrypt*.whl; do
auditwheel repair "$whl" -w /io/wheelhouse/
done
for PYBIN in /opt/python/*/bin/; do
"${PYBIN}"/pip install bcrypt --no-index -f /io/wheelhouse/
"${PYBIN}"/python -c "import bcrypt;password = b'super secret password';hashed = bcrypt.hashpw(password, bcrypt.gensalt());bcrypt.checkpw(password, hashed)"
done

3
wheel-scripts/docker.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
docker run --rm -v $(pwd):/io quay.io/pypa/manylinux1_x86_64 /io/build_wheels.sh
docker run --rm -v $(pwd):/io quay.io/pypa/manylinux1_i686 linux32 /io/build_wheels.sh