aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/extension.py
diff options
context:
space:
mode:
Diffstat (limited to 'setuptools/extension.py')
-rw-r--r--setuptools/extension.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/setuptools/extension.py b/setuptools/extension.py
index b9d68178..d265b7a3 100644
--- a/setuptools/extension.py
+++ b/setuptools/extension.py
@@ -14,6 +14,7 @@ _Extension = _get_unpatched(distutils.core.Extension)
msvc.patch_for_specialized_compiler()
+
def _have_cython():
"""
Return True if Cython can be imported.
@@ -48,6 +49,7 @@ class Extension(_Extension):
sub = functools.partial(re.sub, '.pyx$', target_ext)
self.sources = list(map(sub, self.sources))
+
class Library(Extension):
"""Just like a regular Extension, but built as a library instead"""