mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 03:20:08 +01:00
Use "snapshot" instead of the revision text, that's already in the version number.
Also, spell out "development"
This commit is contained in:
@@ -337,16 +337,13 @@ class Configuration(object):
|
|||||||
# is a release build. (In theory)
|
# is a release build. (In theory)
|
||||||
if os.path.exists('REV.txt'):
|
if os.path.exists('REV.txt'):
|
||||||
f = open('REV.txt')
|
f = open('REV.txt')
|
||||||
txt = f.read().strip()
|
self.VER_FLAGS += f.read().strip()
|
||||||
self.VER_FLAGS += txt
|
self.BUILD_TYPE = 'snapshot'
|
||||||
if txt[0] == '.':
|
|
||||||
txt = txt[1:]
|
|
||||||
self.BUILD_TYPE = txt
|
|
||||||
f.close()
|
f.close()
|
||||||
elif os.environ.get('WXPYTHON_RELEASE') == 'yes':
|
elif os.environ.get('WXPYTHON_RELEASE') == 'yes':
|
||||||
self.BUILD_TYPE = "release"
|
self.BUILD_TYPE = 'release'
|
||||||
else:
|
else:
|
||||||
self.BUILD_TYPE = "devel"
|
self.BUILD_TYPE = 'development'
|
||||||
|
|
||||||
self.VERSION = "%s.%s.%s%s" % (self.VER_MAJOR,
|
self.VERSION = "%s.%s.%s%s" % (self.VER_MAJOR,
|
||||||
self.VER_MINOR,
|
self.VER_MINOR,
|
||||||
|
|||||||
Reference in New Issue
Block a user