We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 06d9d06 + 88010ab commit aed1774Copy full SHA for aed1774
setup.py
@@ -487,7 +487,8 @@ def pxd(name):
487
488
msgpack_ext = Extension('pandas.msgpack',
489
sources = [srcpath('msgpack',
490
- suffix=suffix, subdir='')],
+ suffix=suffix if suffix == '.pyx' else '.cpp',
491
+ subdir='')],
492
language='c++',
493
include_dirs=common_include,
494
define_macros=macros)
@@ -500,7 +501,7 @@ def pxd(name):
500
501
if suffix == '.pyx' and 'setuptools' in sys.modules:
502
# undo dumb setuptools bug clobbering .pyx sources back to .c
503
for ext in extensions:
- if ext.sources[0].endswith('.c'):
504
+ if ext.sources[0].endswith(('.c','.cpp')):
505
root, _ = os.path.splitext(ext.sources[0])
506
ext.sources[0] = root + suffix
507
0 commit comments