Skip to content

Commit bf4124f

Browse files
author
INADA Naoki
committed
Fix setup.py sdist doesn't generates c++ source.
1 parent 59c8b51 commit bf4124f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@
3232

3333
class Sdist(sdist):
3434
def __init__(self, *args, **kwargs):
35+
cy_opt = cython_compiler.default_options.copy()
36+
cy_opt['cplus'] = True
3537
for src in glob('msgpack/*.pyx'):
36-
cython_compiler.compile(glob('msgpack/*.pyx'),
37-
cython_compiler.default_options)
38+
cython_compiler.compile(glob('msgpack/*.pyx'), cy_opt)
3839
sdist.__init__(self, *args, **kwargs)
3940
else:
4041
sources = ['msgpack/_msgpack.cpp']

0 commit comments

Comments
 (0)