Commit c8da4c33 authored by Jason R. Coombs's avatar Jason R. Coombs

self.language could be None (and is None by default)

parent 261a4ed0
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment