summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorINADA Naoki <songofacandy@gmail.com>2010-09-02 10:10:34 +0900
committerINADA Naoki <songofacandy@gmail.com>2010-09-02 10:10:34 +0900
commitb68f61cae998c2d690501393563ef6a29ac35154 (patch)
treee922bacb08d7b3b267b0b56b6ddb63a82ed730d0
parent742ca5c341ac1d51680d662b8833cb2a6cf9064d (diff)
downloadmsgpack-python-b68f61cae998c2d690501393563ef6a29ac35154.tar.gz
python: Release 0.1.6 - Fix wrong version string.
-rwxr-xr-xsetup.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index 67ff74c..d079e3e 100755
--- a/setup.py
+++ b/setup.py
@@ -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'],