From ca71bc26f65f1eac9f26b5e5b0d7b4109186fe59 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sun, 4 Feb 2018 16:36:23 -0500 Subject: Import Cython.Compiler.Main as recommended by Cython project to improve Cython detection. Fixes #1229. --- setuptools/command/build_ext.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'setuptools/command/build_ext.py') 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 -- cgit v1.2.3