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