summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2016-12-23 19:58:22 +0100
committerStefan Behnel <stefan_ml@behnel.de>2016-12-23 19:58:22 +0100
commitc667651a02ff8b206fa3af7e5e0cf17dac2f1176 (patch)
tree1bf719addc4ea35cf163f6598100c48ec45f8864
parent21f139b65b50cb14b0e443040fdf5e32b223c3fe (diff)
downloadpython-lxml-c667651a02ff8b206fa3af7e5e0cf17dac2f1176.tar.gz
use generic CFLAGS and fixed libxml2/libxslt versions for building wheelslxml-3.7.1
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index cde74c67..e19906a7 100644
--- a/Makefile
+++ b/Makefile
@@ -10,6 +10,8 @@ PY3_WITH_CYTHON=$(shell $(PYTHON3) -c 'import Cython.Build.Dependencies' >/dev/n
CYTHON_WITH_COVERAGE=$(shell $(PYTHON) -c 'import Cython.Coverage; import sys; assert not hasattr(sys, "pypy_version_info")' >/dev/null 2>/dev/null && echo " --coverage" || true)
CYTHON3_WITH_COVERAGE=$(shell $(PYTHON3) -c 'import Cython.Coverage; import sys; assert not hasattr(sys, "pypy_version_info")' >/dev/null 2>/dev/null && echo " --coverage" || true)
+MANYLINUX_LIBXML2_VERSION=2.9.3
+MANYLINUX_LIBXSLT_VERSION=1.1.29
MANYLINUX_IMAGE_X86_64=quay.io/pypa/manylinux1_x86_64
.PHONY: all inplace rebuild-sdist sdist build require-cython wheel_manylinux wheel
@@ -40,8 +42,10 @@ require-cython:
wheel_manylinux: dist/lxml-$(LXMLVERSION).tar.gz
time docker run --rm -t \
-v $(shell pwd):/io \
- -e CFLAGS="$(CFLAGS)" \
+ -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) \
bash /io/tools/manylinux/build-wheels.sh /io/$<