diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2016-08-18 15:03:00 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2016-08-18 15:03:00 +0200 |
commit | 5ddce3d1fc59c77b08396eccc4810d8eef870ece (patch) | |
tree | 71f728ceb2473b82a7fd773b4789d35daf82ddf7 /Makefile | |
parent | 3ce6462f0ca2f5a59de968f6740f744a836a73e7 (diff) | |
download | python-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-- | Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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) |