make setup.py work with python3.2
This commit is contained in:
parent
70877008d9
commit
4df6f5afcc
1 changed files with 3 additions and 3 deletions
6
setup.py
6
setup.py
|
@ -17,7 +17,7 @@ def get_version():
|
|||
rev = int(f.read().split()[0])
|
||||
f.close()
|
||||
if rev:
|
||||
version = u"2.3.%s"%rev
|
||||
version = "2.3.%d" % rev
|
||||
with open(__version, 'w') as fd:
|
||||
fd.write('VERSION="%s"'%version)
|
||||
return version
|
||||
|
@ -34,8 +34,8 @@ def get_version():
|
|||
f.close()
|
||||
rev = re.compile('\d+\.\d+\.(\d+)').findall(head)
|
||||
if rev:
|
||||
return u'2.3.%s'%rev[0]
|
||||
return u'2.3.x'
|
||||
return '2.3.%s' % rev[0]
|
||||
return '2.3.x'
|
||||
|
||||
setup(
|
||||
name="ox",
|
||||
|
|
Loading…
Reference in a new issue