summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2016-08-18 15:03:00 +0200
committerStefan Behnel <stefan_ml@behnel.de>2016-08-18 15:03:00 +0200
commit5ddce3d1fc59c77b08396eccc4810d8eef870ece (patch)
tree71f728ceb2473b82a7fd773b4789d35daf82ddf7 /Makefile
parent3ce6462f0ca2f5a59de968f6740f744a836a73e7 (diff)
downloadpython-lxml-5ddce3d1fc59c77b08396eccc4810d8eef870ece.tar.gz
build and reuse sdist when building wheels and properly pass CFLAGS into docker container
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 211a0ff9..62bc59a5 100644
--- a/Makefile
+++ b/Makefile
@@ -24,11 +24,17 @@ sdist:
build:
$(PYTHON) setup.py $(SETUPFLAGS) build $(PYTHON_WITH_CYTHON)
-wheel_manylinux:
+require-cython:
+ @[ -n "$(PYTHON_WITH_CYTHON)" ] || { \
+ echo "NOTE: missing Cython - please use '$(PYTHON) -m pip install Cython' to install it"; false; }
+
+wheel_manylinux: require-cython sdist
docker run --rm -t \
-v $(shell pwd):/io \
+ -e CFLAGS="$(CFLAGS)" \
+ -e LDFLAGS="$(LDFLAGS)" \
$(MANYLINUX_IMAGE_X86_64) \
- bash /io/tools/manylinux/build-wheels.sh
+ bash /io/tools/manylinux/build-wheels.sh /io/dist/lxml-$(LXMLVERSION).tar.gz
wheel:
$(PYTHON) setup.py $(SETUPFLAGS) bdist_wheel $(PYTHON_WITH_CYTHON)