diff options
author | Naoki INADA <inada-n@klab.jp> | 2009-07-13 14:27:57 +0900 |
---|---|---|
committer | Naoki INADA <inada-n@klab.jp> | 2009-07-13 14:27:57 +0900 |
commit | 7247238873d75e30b5d4d823bb39869326e89f6a (patch) | |
tree | ee6e38beaf79cb0a66d825fe88a6fb16380cc7f3 | |
parent | 2d885ad22afa24c5fbf62b5cf0d5970f4a4a2ff7 (diff) | |
download | msgpack-python-7247238873d75e30b5d4d823bb39869326e89f6a.tar.gz |
Add setup script for distribution.
-rwxr-xr-x | setup.py | 7 | ||||
-rwxr-xr-x | setup_dev.py | 41 |
2 files changed, 45 insertions, 3 deletions
@@ -2,13 +2,14 @@ # coding: utf-8 from distutils.core import setup, Extension -from Cython.Distutils import build_ext +#from Cython.Distutils import build_ext import os version = '0.1.0' msgpack_mod = Extension('msgpack._msgpack', - sources=['msgpack/_msgpack.pyx'] + #sources=['msgpack/_msgpack.pyx'] + sources=['msgpack/_msgpack.c'] ) desc = 'MessagePack (de)serializer.' @@ -28,7 +29,7 @@ setup(name='msgpack', author='Naoki INADA', author_email='songofacandy@gmail.com', version=version, - cmdclass={'build_ext': build_ext}, + #cmdclass={'build_ext': build_ext}, ext_modules=[msgpack_mod], packages=['msgpack'], description=desc, diff --git a/setup_dev.py b/setup_dev.py new file mode 100755 index 0000000..255e0db --- /dev/null +++ b/setup_dev.py @@ -0,0 +1,41 @@ +#!/usr/bin/env python +# coding: utf-8 + +from distutils.core import setup, Extension +from Cython.Distutils import build_ext +import os + +version = '0.1.0' + +msgpack_mod = Extension('msgpack._msgpack', + sources=['msgpack/_msgpack.pyx'] + ) + +desc = 'MessagePack (de)serializer.' +long_desc = desc + """ + +MessagePack_ (de)serializer for Python. + +.. _MessagePack: http://msgpack.sourceforge.jp/ + +What's MessagePack? (from http://msgpack.sourceforge.jp/) + + MessagePack is a binary-based efficient data interchange format that is + focused on high performance. It is like JSON, but very fast and small. +""" + +setup(name='msgpack', + author='Naoki INADA', + author_email='songofacandy@gmail.com', + version=version, + cmdclass={'build_ext': build_ext}, + ext_modules=[msgpack_mod], + packages=['msgpack'], + description=desc, + long_description=long_desc, + classifiers=[ + 'Development Status :: 4 - Beta', + 'Intended Audience :: Developers', + 'License :: OSI Approved :: Apache Software License', + ] + ) |