1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-19 12:28:08 +01:00

Updated vcsinfo.py generation logic

This commit is contained in:
Adam Blackburn
2009-04-22 21:45:51 +08:00
parent 779fb40fff
commit 3665bc3c61

View File

@@ -29,18 +29,21 @@ VERSION_NUM = '1.6.0a1'
REVISION_NUM = 'unknown'
CURSES_REVNO = 'uimod'
# change to the directory setup.py is contained in
os.chdir(os.path.abspath(__file))
try:
try:
os.system('bzr version-info --python > vcsinfo.py')
except:
pass
if os.path.exists('.bzr') and os.system('bzr') == 0:
try:
os.system('bzr version-info --python > vcsinfo.py')
except:
pass
import vcsinfo
REVISION_NUM = vcsinfo.version_info['revno']
except Exception, e:
print 'failed to find revision number:'
print e
class configure(Command):
description = "configure the paths that Wicd will be installed to"