From 280d56eb9b61f68ff87e3e217eeec0b5fd645c38 Mon Sep 17 00:00:00 2001 From: INADA Naoki Date: Tue, 11 Dec 2012 22:05:00 +0900 Subject: [PATCH] rename _msgpack.pyx => _packer.pyx --- msgpack/__init__.py | 3 ++- msgpack/{_msgpack.pyx => _packer.pyx} | 0 setup.py | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) rename msgpack/{_msgpack.pyx => _packer.pyx} (100%) 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 similarity index 100% rename from msgpack/_msgpack.pyx rename to msgpack/_packer.pyx diff --git a/setup.py b/setup.py index b9af8c3..5a342e0 100644 --- a/setup.py +++ b/setup.py @@ -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=['.'],