-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from kmaehashi/build-wheel
add wheel build script
- Loading branch information
Showing
4 changed files
with
63 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,3 +105,5 @@ venv.bak/ | |
|
||
# Project-specific | ||
pypict/capi.cpp | ||
pypict/pict | ||
wheelhouse/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash -uex | ||
|
||
# Build wheels using manylinux1 Docker image provided by PyPA: | ||
# https://github.com/pypa/manylinux | ||
|
||
PKG_DIR="$(cd "$(dirname $0)"; pwd)" | ||
|
||
function run_manylinux() { | ||
docker run \ | ||
--rm \ | ||
--user $(id -u):$(id -g) \ | ||
--volume "${PKG_DIR}:/package" \ | ||
--workdir /package \ | ||
quay.io/pypa/manylinux1_x86_64 \ | ||
"$@" | ||
} | ||
|
||
rm -rf dist wheelhouse | ||
for PYTHON in cp27-cp27m cp27-cp27mu cp34-cp34m cp35-cp35m cp36-cp36m; do | ||
run_manylinux sh -uex -c " | ||
export PATH=/opt/python/${PYTHON}/bin:\${PATH} | ||
export HOME=/tmp | ||
export LD_LIBRARY_PATH=\${PWD}/pict | ||
pip install --user 'Cython==0.28.3' | ||
rm -rf dist | ||
python setup.py build_pict test bdist_wheel --package-command | ||
auditwheel --verbose repair dist/*-*-${PYTHON}-linux_x86_64.whl | ||
" | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters