diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2012-03-10 19:03:23 -0800 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2012-03-10 19:03:23 -0800 |
commit | ed9ebca5b0c012c6b44adad4efa475f1cccd460d (patch) | |
tree | 2cea042072d33f9956e7392ce28e93bf6211ce36 /setuptools/extension.py | |
parent | 7c0eeec316a6d593b7c868c96dfe1b96fb8775b2 (diff) | |
download | external_python_setuptools-ed9ebca5b0c012c6b44adad4efa475f1cccd460d.tar.gz external_python_setuptools-ed9ebca5b0c012c6b44adad4efa475f1cccd460d.tar.bz2 external_python_setuptools-ed9ebca5b0c012c6b44adad4efa475f1cccd460d.zip |
Indent with spaces
--HG--
branch : distribute
extra : rebase_source : 799441b639f6f9c55fe25745e793ac29419f0293
Diffstat (limited to 'setuptools/extension.py')
-rw-r--r-- | setuptools/extension.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/setuptools/extension.py b/setuptools/extension.py index 980ee0a7..b5a0702b 100644 --- a/setuptools/extension.py +++ b/setuptools/extension.py @@ -5,12 +5,12 @@ _Extension = _get_unpatched(_Extension) # Prefer Cython to Pyrex pyrex_impls = 'Cython.Distutils.build_ext', 'Pyrex.Distutils.build_ext' for pyrex_impl in pyrex_impls: - try: - # from (pyrex_impl) import build_ext - build_ext = __import__(pyrex_impl, fromlist=['build_ext']).build_ext - break - except: - pass + try: + # from (pyrex_impl) import build_ext + build_ext = __import__(pyrex_impl, fromlist=['build_ext']).build_ext + break + except: + pass have_pyrex = 'build_ext' in globals() @@ -18,7 +18,7 @@ class Extension(_Extension): """Extension that uses '.c' files in place of '.pyx' files""" if not have_pyrex: - # convert .pyx extensions to .c + # convert .pyx extensions to .c def __init__(self,*args,**kw): _Extension.__init__(self,*args,**kw) sources = [] |