From de46545db087dc81ea24d2a8695f8fe6ff6a0c78 Mon Sep 17 00:00:00 2001 From: Mehdi Abaakouk Date: Tue, 2 Aug 2016 12:13:41 +0200 Subject: [PATCH] Fix _have_cython In 3c047624, we remove the loop, but we miss to convert the tuple to a string. Because the exception is just ignored, we don't see that __import__ won't works --- setuptools/extension.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setuptools/extension.py b/setuptools/extension.py index 5ea72c060d..6b9c19f8b6 100644 --- a/setuptools/extension.py +++ b/setuptools/extension.py @@ -19,7 +19,7 @@ def _have_cython(): """ Return True if Cython can be imported. """ - cython_impl = 'Cython.Distutils.build_ext', + cython_impl = 'Cython.Distutils.build_ext' try: # from (cython_impl) import build_ext __import__(cython_impl, fromlist=['build_ext']).build_ext