Commit 1727c4ba authored by Stefan Behnel's avatar Stefan Behnel

do not compile Cython itself outside of CPython

--HG--
extra : transplant_source : J%FF%93%9C%96%02%E8m%0E%AD7V%A5%1C%CF%7D%89%F6%14J
parent 2bdae416
...@@ -3,6 +3,12 @@ from distutils.sysconfig import get_python_lib ...@@ -3,6 +3,12 @@ from distutils.sysconfig import get_python_lib
import os, os.path import os, os.path
import sys import sys
try:
import platform
is_cpython = not hasattr(platform, 'python_implementation') or platform.python_implementation() == 'CPython'
except (ImportError, NameError):
is_cpython = True # CPython < 2.6
if sys.platform == "darwin": if sys.platform == "darwin":
# Don't create resource files on OS X tar. # Don't create resource files on OS X tar.
os.environ['COPY_EXTENDED_ATTRIBUTES_DISABLE'] = 'true' os.environ['COPY_EXTENDED_ATTRIBUTES_DISABLE'] = 'true'
...@@ -259,7 +265,7 @@ try: ...@@ -259,7 +265,7 @@ try:
except ValueError: except ValueError:
compile_cython_itself = True compile_cython_itself = True
if compile_cython_itself: if compile_cython_itself and (is_cpython or cython_compile_more):
compile_cython_modules(cython_profile, cython_compile_more, cython_with_refnanny) compile_cython_modules(cython_profile, cython_compile_more, cython_with_refnanny)
setup_args.update(setuptools_extra_args) setup_args.update(setuptools_extra_args)
......
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