diff options
author | INADA Naoki <inada-n@klab.com> | 2012-12-11 22:05:00 +0900 |
---|---|---|
committer | INADA Naoki <inada-n@klab.com> | 2012-12-11 22:05:00 +0900 |
commit | 280d56eb9b61f68ff87e3e217eeec0b5fd645c38 (patch) | |
tree | ee50c50b8b4784715735e7ad4058ebf25c0dd221 | |
parent | 171145e56290a2254d6b648d438dde33cd631fc4 (diff) | |
download | msgpack-python-280d56eb9b61f68ff87e3e217eeec0b5fd645c38.tar.gz |
rename _msgpack.pyx => _packer.pyx
-rw-r--r-- | msgpack/__init__.py | 3 | ||||
-rw-r--r-- | msgpack/_packer.pyx (renamed from msgpack/_msgpack.pyx) | 0 | ||||
-rw-r--r-- | setup.py | 4 |
3 files changed, 4 insertions, 3 deletions
diff --git a/msgpack/__init__.py b/msgpack/__init__.py index 98b1ab7..1aacee1 100644 --- a/msgpack/__init__.py +++ b/msgpack/__init__.py @@ -1,6 +1,7 @@ # coding: utf-8 from msgpack._version import version -from msgpack._msgpack import * +from msgpack.exceptions import * +from msgpack._packer import pack, packb, Packer, unpack, unpackb, Unpacker # alias for compatibility to simplejson/marshal/pickle. load = unpack diff --git a/msgpack/_msgpack.pyx b/msgpack/_packer.pyx index d58255e..d58255e 100644 --- a/msgpack/_msgpack.pyx +++ b/msgpack/_packer.pyx @@ -59,7 +59,7 @@ if have_cython: else: Sdist = sdist -sources = ['msgpack/_msgpack.cpp'] +sources = ['msgpack/_packer.cpp'] libraries = [] if sys.platform == 'win32': libraries.append('ws2_32') @@ -69,7 +69,7 @@ if sys.byteorder == 'big': else: macros = [('__LITTLE_ENDIAN__', '1')] -msgpack_mod = Extension('msgpack._msgpack', +msgpack_mod = Extension('msgpack._packer', sources=sources, libraries=libraries, include_dirs=['.'], |