diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2015-06-10 14:56:52 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-06-10 14:56:52 -0400 |
commit | 3c047624cfa74a42320334ed6ec0dd7b6bd789b6 (patch) | |
tree | cf0d62a5240a42eb16554be05afd908f5c98f749 /setuptools/extension.py | |
parent | 8c428b55cd4649bea3092f134bda8c919b96fe94 (diff) | |
download | python-setuptools-git-3c047624cfa74a42320334ed6ec0dd7b6bd789b6.tar.gz |
Remove loop, made unnecessary by removal of support for Pyrex
Diffstat (limited to 'setuptools/extension.py')
-rw-r--r-- | setuptools/extension.py | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/setuptools/extension.py b/setuptools/extension.py index a7c40f86..35eb7c7c 100644 --- a/setuptools/extension.py +++ b/setuptools/extension.py @@ -16,14 +16,13 @@ def _have_cython(): """ Return True if Cython can be imported. """ - cython_impls = 'Cython.Distutils.build_ext', - for cython_impl in cython_impls: - try: - # from (cython_impl) import build_ext - __import__(cython_impl, fromlist=['build_ext']).build_ext - return True - except Exception: - pass + cython_impl = 'Cython.Distutils.build_ext', + try: + # from (cython_impl) import build_ext + __import__(cython_impl, fromlist=['build_ext']).build_ext + return True + except Exception: + pass return False # for compatibility |