Refactor Cython code (#328)

_msgpack -> _cmsgpack
This commit is contained in:
INADA Naoki 2018-11-14 16:35:37 +09:00 committed by GitHub
parent 2b5f59166b
commit d782464c91
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 17 additions and 40 deletions

View file

@ -68,7 +68,7 @@ if len(version) > 3 and version[3] != 'final':
if have_cython:
class Sdist(sdist):
def __init__(self, *args, **kwargs):
cythonize('msgpack/_msgpack.pyx')
cythonize('msgpack/_cmsgpack.pyx')
sdist.__init__(self, *args, **kwargs)
else:
Sdist = sdist
@ -84,8 +84,8 @@ else:
ext_modules = []
if not hasattr(sys, 'pypy_version_info'):
ext_modules.append(Extension('msgpack._msgpack',
sources=['msgpack/_msgpack.cpp'],
ext_modules.append(Extension('msgpack._cmsgpack',
sources=['msgpack/_cmsgpack.cpp'],
libraries=libraries,
include_dirs=['.'],
define_macros=macros,