mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-10-19 20:03:16 +00:00
Make msgpack package instead of module.
This commit is contained in:
parent
fcc645b18b
commit
74a5fb3592
7 changed files with 9 additions and 3442 deletions
6
setup.py
6
setup.py
|
@ -1,12 +1,13 @@
|
|||
from distutils.core import setup, Extension
|
||||
from Cython.Distutils import build_ext
|
||||
import os
|
||||
|
||||
version = '0.0.1'
|
||||
|
||||
PACKAGE_ROOT = os.getcwdu()
|
||||
INCLUDE_PATH = os.path.join(PACKAGE_ROOT, 'include')
|
||||
msgpack_mod = Extension('msgpack',
|
||||
sources=['msgpack.c'],
|
||||
msgpack_mod = Extension('msgpack._msgpack',
|
||||
sources=['msgpack/_msgpack.pyx'],
|
||||
include_dirs=[INCLUDE_PATH])
|
||||
|
||||
desc = 'MessagePack serializer/desirializer.'
|
||||
|
@ -28,6 +29,7 @@ setup(name='msgpack',
|
|||
author='Naoki INADA',
|
||||
author_email='songofacandy@gmail.com',
|
||||
version=version,
|
||||
cmdclass={'build_ext': build_ext},
|
||||
ext_modules=[msgpack_mod],
|
||||
description=desc,
|
||||
long_description=long_desc,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue