diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2018-02-04 16:38:33 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2018-02-04 16:38:33 -0500 |
| commit | 038baa16016503708cf3bddcaf2f9b8d541c17bc (patch) | |
| tree | f44046b2a13b329dda52f63de35f3e85c65f385f | |
| parent | ca71bc26f65f1eac9f26b5e5b0d7b4109186fe59 (diff) | |
| download | python-setuptools-git-038baa16016503708cf3bddcaf2f9b8d541c17bc.tar.gz | |
Prefer new_build_ext for Cython builds as recommended by Cython project. Fixes #1270.
| -rw-r--r-- | CHANGES.rst | 3 | ||||
| -rw-r--r-- | setuptools/command/build_ext.py | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/CHANGES.rst b/CHANGES.rst index 5a526e8a..ef0a8a87 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,6 +4,9 @@ v38.5.0 * #1229: Expand imports in ``build_ext`` to refine detection of Cython availability. +* #1270: When Cython is available, ``build_ext`` now uses the + new_build_ext. + v38.4.1 ------- diff --git a/setuptools/command/build_ext.py b/setuptools/command/build_ext.py index ea97b37b..01d65f59 100644 --- a/setuptools/command/build_ext.py +++ b/setuptools/command/build_ext.py @@ -14,7 +14,7 @@ from setuptools.extern import six try: # Attempt to use Cython for building extensions, if available - from Cython.Distutils.build_ext import build_ext as _build_ext + from Cython.Distutils.build_ext import new_build_ext as _build_ext # Additionally, assert that the compiler module will load # also. Ref #1229. __import__('Cython.Compiler.Main') |
