Commit e9b67571 authored by Stefan Behnel's avatar Stefan Behnel

Make Makefile a little more generic to simplify code copying from other projects.

parent 2ab4744f
PACKAGENAME=Cython
PYTHON?=python PYTHON?=python
TESTOPTS?= TESTOPTS?=
REPO = git://github.com/cython/cython.git REPO = git://github.com/cython/cython.git
...@@ -11,9 +12,9 @@ all: local ...@@ -11,9 +12,9 @@ all: local
local: local:
${PYTHON} setup.py build_ext --inplace ${PYTHON} setup.py build_ext --inplace
sdist: dist/Cython-$(VERSION).tar.gz sdist: dist/$(PACKAGENAME)-$(VERSION).tar.gz
dist/Cython-$(VERSION).tar.gz: dist/$(PACKAGENAME)-$(VERSION).tar.gz:
$(PYTHON) setup.py sdist $(PYTHON) setup.py sdist
TMPDIR = .repo_tmp TMPDIR = .repo_tmp
...@@ -53,8 +54,8 @@ s5: ...@@ -53,8 +54,8 @@ s5:
wheel_manylinux: wheel_manylinux64 wheel_manylinux32 wheel_manylinux: wheel_manylinux64 wheel_manylinux32
wheel_manylinux32 wheel_manylinux64: dist/Cython-$(VERSION).tar.gz wheel_manylinux32 wheel_manylinux64: dist/$(PACKAGENAME)-$(VERSION).tar.gz
echo "Building wheels for Cython $(VERSION)" echo "Building wheels for $(PACKAGENAME) $(VERSION)"
mkdir -p wheelhouse_$(subst wheel_,,$@) mkdir -p wheelhouse_$(subst wheel_,,$@)
time docker run --rm -t \ time docker run --rm -t \
-v $(shell pwd):/io \ -v $(shell pwd):/io \
...@@ -66,4 +67,4 @@ wheel_manylinux32 wheel_manylinux64: dist/Cython-$(VERSION).tar.gz ...@@ -66,4 +67,4 @@ wheel_manylinux32 wheel_manylinux64: dist/Cython-$(VERSION).tar.gz
$$PYBIN/python -V; \ $$PYBIN/python -V; \
{ $$PYBIN/pip wheel -w /io/$$WHEELHOUSE /io/$< & } ; \ { $$PYBIN/pip wheel -w /io/$$WHEELHOUSE /io/$< & } ; \
done; wait; \ done; wait; \
for whl in /io/$$WHEELHOUSE/Cython-$(VERSION)-*-linux_*.whl; do auditwheel repair $$whl -w /io/$$WHEELHOUSE; done' for whl in /io/$$WHEELHOUSE/$(PACKAGENAME)-$(VERSION)-*-linux_*.whl; do auditwheel repair $$whl -w /io/$$WHEELHOUSE; done'
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment