diff options
Diffstat (limited to 'setuptools/extension.py')
-rw-r--r-- | setuptools/extension.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/setuptools/extension.py b/setuptools/extension.py index 06ec1cec..d8516092 100644 --- a/setuptools/extension.py +++ b/setuptools/extension.py @@ -38,7 +38,8 @@ class Extension(_Extension): # the build has Cython, so allow it to compile the .pyx files return def pyx_to_target(source): - target_ext = '.cpp' if self.language.lower() == 'c++' else '.c' + lang = self.language or '' + target_ext = '.cpp' if lang.lower() == 'c++' else '.c' if source.endswith('.pyx'): source = source[:-4] + target_ext return source |