diff options
author | Naoki INADA <inada-n@eagle> | 2009-06-22 14:38:36 +0900 |
---|---|---|
committer | Naoki INADA <inada-n@eagle> | 2009-06-22 14:38:36 +0900 |
commit | 20a7ff0be80a1467f7375adc1b0645d2d8f2cf05 (patch) | |
tree | 78249271a0971070d1bba1419c054f963b725648 /python/setup.py | |
parent | 075081a521c8287759847f1aa846b88fef1f0046 (diff) | |
parent | 3a9f74e79c3d1912d8c0c1ad4d1478c611caba0a (diff) | |
download | msgpack-python-20a7ff0be80a1467f7375adc1b0645d2d8f2cf05.tar.gz |
Make msgpack package instead of module. and using Cython in setup script.
Diffstat (limited to 'python/setup.py')
-rw-r--r-- | python/setup.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/python/setup.py b/python/setup.py index c0d93ac..eb897f2 100644 --- a/python/setup.py +++ b/python/setup.py @@ -1,12 +1,14 @@ from distutils.core import setup, Extension +from Cython.Distutils import build_ext import os -version = '0.0.1' +version = '0.0.1dev' PACKAGE_ROOT = os.getcwdu() INCLUDE_PATH = os.path.join(PACKAGE_ROOT, 'include') -msgpack_mod = Extension('msgpack', - sources=['msgpack.cpp'], +msgpack_mod = Extension('msgpack._msgpack', + language="c++", + sources=['msgpack/_msgpack.pyx'], include_dirs=[INCLUDE_PATH]) desc = 'MessagePack serializer/desirializer.' @@ -28,6 +30,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, |