mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-03-18 20:38:00 +01:00
python: Release 0.1.6 - Fix wrong version string.
This commit is contained in:
parent
138d232149
commit
a62aefe74b
@ -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'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user