mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-10-19 20:03:16 +00:00
Change the way to manage version number.
This commit is contained in:
parent
29b4b785d0
commit
814c42c291
3 changed files with 3 additions and 8 deletions
8
setup.py
8
setup.py
|
@ -53,13 +53,7 @@ class BuildExt(build_ext):
|
|||
return build_ext.build_extension(self, ext)
|
||||
|
||||
|
||||
# make msgpack/__verison__.py
|
||||
f = open('msgpack/__version__.py', 'w')
|
||||
try:
|
||||
f.write("version = %r\n" % (version,))
|
||||
finally:
|
||||
f.close()
|
||||
del f
|
||||
exec(open('msgpack/_version.py').read())
|
||||
|
||||
version_str = '.'.join(str(x) for x in version[:3])
|
||||
if len(version) > 3 and version[3] != 'final':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue