Navigation Menu

Skip to content

Commit

Permalink
Import Cython.Compiler.Main as recommended by Cython project to impro…
Browse files Browse the repository at this point in the history
…ve Cython detection. Fixes #1229.
  • Loading branch information
jaraco committed Feb 4, 2018
1 parent 5f576fd commit ca71bc2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGES.rst
@@ -1,3 +1,9 @@
v38.5.0
-------

* #1229: Expand imports in ``build_ext`` to refine detection of
Cython availability.

v38.4.1
-------

Expand Down
3 changes: 3 additions & 0 deletions setuptools/command/build_ext.py
Expand Up @@ -15,6 +15,9 @@
try:
# Attempt to use Cython for building extensions, if available
from Cython.Distutils.build_ext import build_ext as _build_ext
# Additionally, assert that the compiler module will load
# also. Ref #1229.
__import__('Cython.Compiler.Main')
except ImportError:
_build_ext = _du_build_ext

Expand Down

0 comments on commit ca71bc2

Please sign in to comment.