aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/build_ext.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2018-02-04 16:36:23 -0500
committerJason R. Coombs <jaraco@jaraco.com>2018-02-04 16:36:23 -0500
commitca71bc26f65f1eac9f26b5e5b0d7b4109186fe59 (patch)
tree2c426d6eea6a49ce60d9d99298e38375c756ce32 /setuptools/command/build_ext.py
parent5f576fddcca8b132e42e7b8f8b62c63714012934 (diff)
downloadexternal_python_setuptools-ca71bc26f65f1eac9f26b5e5b0d7b4109186fe59.tar.gz
external_python_setuptools-ca71bc26f65f1eac9f26b5e5b0d7b4109186fe59.tar.bz2
external_python_setuptools-ca71bc26f65f1eac9f26b5e5b0d7b4109186fe59.zip
Import Cython.Compiler.Main as recommended by Cython project to improve Cython detection. Fixes #1229.
Diffstat (limited to 'setuptools/command/build_ext.py')
-rw-r--r--setuptools/command/build_ext.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/setuptools/command/build_ext.py b/setuptools/command/build_ext.py
index 36f53f0d..ea97b37b 100644
--- a/setuptools/command/build_ext.py
+++ b/setuptools/command/build_ext.py
@@ -15,6 +15,9 @@ 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
+ # Additionally, assert that the compiler module will load
+ # also. Ref #1229.
+ __import__('Cython.Compiler.Main')
except ImportError:
_build_ext = _du_build_ext