Commit b5a1abfa authored by Stefan Behnel's avatar Stefan Behnel

Support C++ mode in old-setuptools support hack.

parent fe1c8759
......@@ -850,8 +850,8 @@ def create_extension_list(patterns, exclude=None, ctx=None, aliases=None, quiet=
module_metadata[module_name] = metadata
if file not in m.sources:
# Old setuptools unconditionally replaces .pyx with .c
m.sources.remove(file.rsplit('.')[0] + '.c')
# Old setuptools unconditionally replaces .pyx with .c/.cpp
m.sources.remove(file.rsplit('.')[0] + ('.cpp' if m.language == 'c++' else '.c'))
m.sources.insert(0, file)
seen.add(name)
return module_list, module_metadata
......
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