mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-10-19 20:03:16 +00:00
Merge extension module
There were `_packer.so` and `_unpacker.so`. But single module is simpler than double module. Merge extension module into single `_msgpack.so`.
This commit is contained in:
parent
91ec9e1daf
commit
f6f9597249
4 changed files with 10 additions and 15 deletions
13
setup.py
13
setup.py
|
@ -68,8 +68,7 @@ if len(version) > 3 and version[3] != 'final':
|
|||
if have_cython:
|
||||
class Sdist(sdist):
|
||||
def __init__(self, *args, **kwargs):
|
||||
for src in glob('msgpack/*.pyx'):
|
||||
cythonize(src)
|
||||
cythonize('msgpack/_msgpack.pyx')
|
||||
sdist.__init__(self, *args, **kwargs)
|
||||
else:
|
||||
Sdist = sdist
|
||||
|
@ -85,14 +84,8 @@ else:
|
|||
|
||||
ext_modules = []
|
||||
if not hasattr(sys, 'pypy_version_info'):
|
||||
ext_modules.append(Extension('msgpack._packer',
|
||||
sources=['msgpack/_packer.cpp'],
|
||||
libraries=libraries,
|
||||
include_dirs=['.'],
|
||||
define_macros=macros,
|
||||
))
|
||||
ext_modules.append(Extension('msgpack._unpacker',
|
||||
sources=['msgpack/_unpacker.cpp'],
|
||||
ext_modules.append(Extension('msgpack._msgpack',
|
||||
sources=['msgpack/_msgpack.cpp'],
|
||||
libraries=libraries,
|
||||
include_dirs=['.'],
|
||||
define_macros=macros,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue