mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-03-25 19:32:11 +01:00
Make msgpack package instead of module.
This commit is contained in:
parent
a1fb1507d4
commit
3a9f74e79c
@ -1,7 +1,7 @@
|
||||
msgpack.c
|
||||
setup.py
|
||||
pack.h
|
||||
unpack.h
|
||||
msgpack/pack.h
|
||||
msgpack/unpack.h
|
||||
include/msgpack/pack_define.h
|
||||
include/msgpack/pack_template.h
|
||||
include/msgpack/unpack_define.h
|
||||
|
3438
python/msgpack.c
3438
python/msgpack.c
File diff suppressed because it is too large
Load Diff
3
python/msgpack/__init__.py
Normal file
3
python/msgpack/__init__.py
Normal file
@ -0,0 +1,3 @@
|
||||
# coding: utf-8
|
||||
from _msgpack import *
|
||||
|
@ -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…
x
Reference in New Issue
Block a user