mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-10-19 20:03:16 +00:00
Fix setup.py sdist doesn't generates c++ source.
This commit is contained in:
parent
59c8b51e5b
commit
bf4124f592
1 changed files with 3 additions and 2 deletions
5
setup.py
5
setup.py
|
@ -32,9 +32,10 @@ if have_cython:
|
|||
|
||||
class Sdist(sdist):
|
||||
def __init__(self, *args, **kwargs):
|
||||
cy_opt = cython_compiler.default_options.copy()
|
||||
cy_opt['cplus'] = True
|
||||
for src in glob('msgpack/*.pyx'):
|
||||
cython_compiler.compile(glob('msgpack/*.pyx'),
|
||||
cython_compiler.default_options)
|
||||
cython_compiler.compile(glob('msgpack/*.pyx'), cy_opt)
|
||||
sdist.__init__(self, *args, **kwargs)
|
||||
else:
|
||||
sources = ['msgpack/_msgpack.cpp']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue