summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorNaoki INADA <inada-n@gear>2009-06-10 10:58:09 +0900
committerNaoki INADA <inada-n@gear>2009-06-10 10:58:09 +0900
commit74a5fb3592d363092ab73bd90de6ab1d550edb2b (patch)
treebf619337fdb4d72e2dc2e10491bbc318518f85b3 /setup.py
parentfcc645b18bcd36b6240acdfd01ce4d193f1912f3 (diff)
downloadmsgpack-python-74a5fb3592d363092ab73bd90de6ab1d550edb2b.tar.gz
Make msgpack package instead of module.
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index 65ca412..56b3faa 100644
--- a/setup.py
+++ b/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,