summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2020-05-30 09:58:53 +0200
committerStefan Behnel <stefan_ml@behnel.de>2020-05-30 09:58:53 +0200
commitae2d007625b71a1ab736bda816c34ced873bf8e7 (patch)
tree6e7e3906fbb01ae35ca9be6c787606d02fe4044b
parent586eed318c2c1f7b52c5c660ccc08a7a8ac4e551 (diff)
downloadcython-ae2d007625b71a1ab736bda816c34ced873bf8e7.tar.gz
Build Cython in parallel on "make local".
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 23e181ffe..58694d105 100644
--- a/Makefile
+++ b/Makefile
@@ -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