diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2016-12-23 19:58:22 +0100 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2016-12-23 19:58:22 +0100 |
commit | c667651a02ff8b206fa3af7e5e0cf17dac2f1176 (patch) | |
tree | 1bf719addc4ea35cf163f6598100c48ec45f8864 | |
parent | 21f139b65b50cb14b0e443040fdf5e32b223c3fe (diff) | |
download | python-lxml-c667651a02ff8b206fa3af7e5e0cf17dac2f1176.tar.gz |
use generic CFLAGS and fixed libxml2/libxslt versions for building wheelslxml-3.7.1
-rw-r--r-- | Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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/$< |