Skip to content

Commit

Permalink
add support for building 32bit wheels (not currently working due to a…
Browse files Browse the repository at this point in the history
… zlib integration problem in the wheel repair step)
  • Loading branch information
scoder committed Jan 8, 2017
1 parent 361891a commit 1f0fbb1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ CYTHON3_WITH_COVERAGE=$(shell $(PYTHON3) -c 'import Cython.Coverage; import sys;
MANYLINUX_LIBXML2_VERSION=2.9.3
MANYLINUX_LIBXSLT_VERSION=1.1.29
MANYLINUX_IMAGE_X86_64=quay.io/pypa/manylinux1_x86_64
MANYLINUX_IMAGE_686=quay.io/pypa/manylinux1_i686

.PHONY: all inplace rebuild-sdist sdist build require-cython wheel_manylinux wheel

Expand All @@ -39,14 +40,16 @@ require-cython:
@[ -n "$(PYTHON_WITH_CYTHON)" ] || { \
echo "NOTE: missing Cython - please use this command to install it: $(PYTHON) -m pip install Cython"; false; }

wheel_manylinux: dist/lxml-$(LXMLVERSION).tar.gz
wheel_manylinux: wheel_manylinux64 # wheel_manylinux32

wheel_manylinux32 wheel_manylinux64: dist/lxml-$(LXMLVERSION).tar.gz
time docker run --rm -t \
-v $(shell pwd):/io \
-e CFLAGS="-O3 -mtune=generic -pipe -fPIC" \
-e LDFLAGS="$(LDFLAGS)" \
-e LIBXML2_VERSION="$(MANYLINUX_LIBXML2_VERSION)" \
-e LIBXSLT_VERSION="$(MANYLINUX_LIBXSLT_VERSION)" \
$(MANYLINUX_IMAGE_X86_64) \
$(if $(patsubst %32,,$@),$(MANYLINUX_IMAGE_X86_64),$(MANYLINUX_IMAGE_686)) \
bash /io/tools/manylinux/build-wheels.sh /io/$<

wheel:
Expand Down

0 comments on commit 1f0fbb1

Please sign in to comment.