Commit 9d6545a3 authored by Stefan Behnel's avatar Stefan Behnel

Apply auditwheel and avoid conflicting wheel changes in 32/64 bits.

Add wheelhouse directories to gitignore.
parent b97df20e
......@@ -16,6 +16,7 @@ Tools/*.elc
TEST_TMP/
build/
wheelhouse*/
!tests/build/
dist/
.gitrev
......
......@@ -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'
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment