summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2017-08-29 20:12:01 +0200
committerStefan Behnel <stefan_ml@behnel.de>2017-08-29 20:12:01 +0200
commit9d6545a3521324dbc4f765e786ed4b10cb0f7b78 (patch)
treee8ddd9f4b5ffae3a44d662035c51e780ef4b1d0e /Makefile
parentb97df20e52c0762204e1b68a158f966161da2023 (diff)
downloadcython-9d6545a3521324dbc4f765e786ed4b10cb0f7b78.tar.gz
Apply auditwheel and avoid conflicting wheel changes in 32/64 bits.
Add wheelhouse directories to gitignore.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ccf6a270a..6c57eac33 100644
--- a/Makefile
+++ b/Makefile
@@ -50,10 +50,15 @@ wheel_manylinux: wheel_manylinux64 wheel_manylinux32
wheel_manylinux32 wheel_manylinux64: dist/Cython-$(VERSION).tar.gz
echo "Building wheels for Cython $VERSION"
- mkdir -p wheelhouse
+ mkdir -p wheelhouse_$(subst wheel_,,$@)
time docker run --rm -t \
-v $(shell pwd):/io \
-e CFLAGS="-O3 -g0 -mtune=generic -pipe -fPIC" \
-e LDFLAGS="$(LDFLAGS) -fPIC" \
+ -e WHEELHOUSE=wheelhouse_$(subst wheel_,,$@) \
$(if $(patsubst %32,,$@),$(MANYLINUX_IMAGE_X86_64),$(MANYLINUX_IMAGE_686)) \
- bash -c 'for PYBIN in /opt/python/*/bin; do $$PYBIN/python -V; { $$PYBIN/pip wheel -w /io/wheelhouse /io/$< & } ; done; wait'
+ bash -c 'for PYBIN in /opt/python/*/bin; do \
+ $$PYBIN/python -V; \
+ { $$PYBIN/pip wheel -w /io/$$WHEELHOUSE /io/$< & } ; \
+ done; wait; \
+ for whl in /io/$$WHEELHOUSE/Cython-$(VERSION)-*-linux_*.whl; do auditwheel repair $$whl -w /io/$$WHEELHOUSE; done'