diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2020-05-30 09:58:53 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2020-05-30 09:58:53 +0200 |
commit | ae2d007625b71a1ab736bda816c34ced873bf8e7 (patch) | |
tree | 6e7e3906fbb01ae35ca9be6c787606d02fe4044b | |
parent | 586eed318c2c1f7b52c5c660ccc08a7a8ac4e551 (diff) | |
download | cython-ae2d007625b71a1ab736bda816c34ced873bf8e7.tar.gz |
Build Cython in parallel on "make local".
-rw-r--r-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -3,6 +3,7 @@ PYTHON?=python TESTOPTS?= REPO = git://github.com/cython/cython.git VERSION?=$(shell sed -ne 's|^__version__\s*=\s*"\([^"]*\)".*|\1|p' Cython/Shadow.py) +PARALLEL?=$(shell ${PYTHON} -c 'import sys; print("-j5" if sys.version_info >= (3,5) else "")' || true) MANYLINUX_IMAGE_X86_64=quay.io/pypa/manylinux2010_x86_64 MANYLINUX_IMAGE_686=quay.io/pypa/manylinux2010_i686 @@ -10,10 +11,10 @@ MANYLINUX_IMAGE_686=quay.io/pypa/manylinux2010_i686 all: local local: - ${PYTHON} setup.py build_ext --inplace + ${PYTHON} setup.py build_ext --inplace $(PARALLEL) plocal: - ${PYTHON} setup.py build_ext --inplace --cython-profile + ${PYTHON} setup.py build_ext --inplace --cython-profile $(PARALLEL) sdist: dist/$(PACKAGENAME)-$(VERSION).tar.gz |