mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-10-20 12:23:16 +00:00
rename _msgpack.pyx => _packer.pyx
This commit is contained in:
parent
171145e562
commit
280d56eb9b
3 changed files with 4 additions and 3 deletions
|
@ -1,6 +1,7 @@
|
||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
from msgpack._version import version
|
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.
|
# alias for compatibility to simplejson/marshal/pickle.
|
||||||
load = unpack
|
load = unpack
|
||||||
|
|
4
setup.py
4
setup.py
|
@ -59,7 +59,7 @@ if have_cython:
|
||||||
else:
|
else:
|
||||||
Sdist = sdist
|
Sdist = sdist
|
||||||
|
|
||||||
sources = ['msgpack/_msgpack.cpp']
|
sources = ['msgpack/_packer.cpp']
|
||||||
libraries = []
|
libraries = []
|
||||||
if sys.platform == 'win32':
|
if sys.platform == 'win32':
|
||||||
libraries.append('ws2_32')
|
libraries.append('ws2_32')
|
||||||
|
@ -69,7 +69,7 @@ if sys.byteorder == 'big':
|
||||||
else:
|
else:
|
||||||
macros = [('__LITTLE_ENDIAN__', '1')]
|
macros = [('__LITTLE_ENDIAN__', '1')]
|
||||||
|
|
||||||
msgpack_mod = Extension('msgpack._msgpack',
|
msgpack_mod = Extension('msgpack._packer',
|
||||||
sources=sources,
|
sources=sources,
|
||||||
libraries=libraries,
|
libraries=libraries,
|
||||||
include_dirs=['.'],
|
include_dirs=['.'],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue