diff options
author | INADA Naoki <songofacandy@gmail.com> | 2010-09-02 10:10:34 +0900 |
---|---|---|
committer | INADA Naoki <songofacandy@gmail.com> | 2010-09-02 10:10:34 +0900 |
commit | b68f61cae998c2d690501393563ef6a29ac35154 (patch) | |
tree | e922bacb08d7b3b267b0b56b6ddb63a82ed730d0 | |
parent | 742ca5c341ac1d51680d662b8833cb2a6cf9064d (diff) | |
download | msgpack-python-b68f61cae998c2d690501393563ef6a29ac35154.tar.gz |
python: Release 0.1.6 - Fix wrong version string.
-rwxr-xr-x | setup.py | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,6 +1,6 @@ #!/usr/bin/env python # coding: utf-8 -version = (0, 1, 5, 'final') +version = (0, 1, 6, 'final') import os from glob import glob @@ -19,6 +19,9 @@ except ImportError: f = open('msgpack/__version__.py', 'w') f.write("version = %r\n" % (version,)) f.close() +version_str = '.'.join(str(x) for x in version[:3]) +if len(version) > 3 and version[3] != 'final': + version_str += version[3] # take care of extension modules. if have_cython: @@ -57,7 +60,7 @@ What's MessagePack? (from http://msgpack.sourceforge.net/) setup(name='msgpack-python', author='INADA Naoki', author_email='songofacandy@gmail.com', - version=''.join(str(x) for x in version), + version=version_str, cmdclass={'build_ext': build_ext, 'sdist': Sdist}, ext_modules=[msgpack_mod], packages=['msgpack'], |