From 02715bb6436e50aadf6c0123f223d5f157679c49 Mon Sep 17 00:00:00 2001 From: PyYoshi Date: Tue, 18 Oct 2016 00:24:49 +0900 Subject: [PATCH] support manylinux1 --- Makefile | 4 ++++ dockerfiles/buildwheel.sh | 11 +++++++++++ 2 files changed, 15 insertions(+) create mode 100755 dockerfiles/buildwheel.sh diff --git a/Makefile b/Makefile index 67c512a..d167b56 100644 --- a/Makefile +++ b/Makefile @@ -16,3 +16,7 @@ twine: install: clean python setup.py install + +build-manylinux1-wheel: + docker run --rm -ti -v `pwd`:/project -w /project quay.io/pypa/manylinux1_i686 bash dockerfiles/buildwheel.sh + docker run --rm -ti -v `pwd`:/project -w /project quay.io/pypa/manylinux1_x86_64 bash dockerfiles/buildwheel.sh diff --git a/dockerfiles/buildwheel.sh b/dockerfiles/buildwheel.sh new file mode 100755 index 0000000..b654e45 --- /dev/null +++ b/dockerfiles/buildwheel.sh @@ -0,0 +1,11 @@ +#!/bin/bash +set -e -x + +ARCH=`uname -p` +echo "arch=$ARCH" + +for V in cp35-cp35m cp34-cp34m cp27-cp27m cp27-cp27mu; do + PYBIN=/opt/python/$V/bin + rm -rf build/ # Avoid lib build by narrow Python is used by wide python + $PYBIN/python setup.py bdist_wheel -p manylinux1_${ARCH} +done