1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
From: Nikolaus Rath <Nikolaus@rath.org>
Date: Tue, 23 Feb 2016 16:30:36 -0800
Subject: Use 'cython3' instead of 'cython' command
Origin: debian
Forwarded: not-needed
In Debian, python3-cython provides only a 'cython3' command. To avoid
pulling in the complete Python 2.x runtime environment for
python-cython, we use 'cython3' instead.
---
setup.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/setup.py b/setup.py
index 97ad917..d105a13 100755
--- a/setup.py
+++ b/setup.py
@@ -232,7 +232,7 @@ class build_cython(setuptools.Command):
def run(self):
try:
- version = subprocess.check_output(['cython', '--version'],
+ version = subprocess.check_output(['cython3', '--version'],
universal_newlines=True,
stderr=subprocess.STDOUT)
except OSError:
@@ -243,7 +243,7 @@ class build_cython(setuptools.Command):
# in fact, we need a very recent Cython version (like 0.29.21) to support py39
raise SystemExit('Need Cython 0.29 or newer, found ' + version)
- cmd = ['cython', '-Wextra', '--force', '-3', '--fast-fail',
+ cmd = ['cython3', '-Wextra', '--force', '-3', '--fast-fail',
'--directive', 'embedsignature=True', '--include-dir',
os.path.join(basedir, 'Include'), '--verbose' ]
if DEVELOPER_MODE:
|