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 | 44bb21af8203a9cf1d2b23c25798b5922494d9e7 (patch) | |
tree | b02258dc7ab86140c3f51872a827a2ea4507d232 | |
parent | 96a061c3140a819593a04d5285b347cff6f98eba (diff) | |
download | python-setuptools-bitbucket-44bb21af8203a9cf1d2b23c25798b5922494d9e7.tar.gz |
Remove loop, made unnecessary by removal of support for Pyrex
-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 |