mirror of
https://github.com/gryf/wicd.git
synced 2025-12-19 20:38:00 +01:00
Updated vcsinfo.py generation logic
This commit is contained in:
13
setup.py
13
setup.py
@@ -29,18 +29,21 @@ VERSION_NUM = '1.6.0a1'
|
|||||||
REVISION_NUM = 'unknown'
|
REVISION_NUM = 'unknown'
|
||||||
CURSES_REVNO = 'uimod'
|
CURSES_REVNO = 'uimod'
|
||||||
|
|
||||||
|
# change to the directory setup.py is contained in
|
||||||
|
os.chdir(os.path.abspath(__file))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
try:
|
if os.path.exists('.bzr') and os.system('bzr') == 0:
|
||||||
os.system('bzr version-info --python > vcsinfo.py')
|
try:
|
||||||
except:
|
os.system('bzr version-info --python > vcsinfo.py')
|
||||||
pass
|
except:
|
||||||
|
pass
|
||||||
import vcsinfo
|
import vcsinfo
|
||||||
REVISION_NUM = vcsinfo.version_info['revno']
|
REVISION_NUM = vcsinfo.version_info['revno']
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
print 'failed to find revision number:'
|
print 'failed to find revision number:'
|
||||||
print e
|
print e
|
||||||
|
|
||||||
|
|
||||||
class configure(Command):
|
class configure(Command):
|
||||||
description = "configure the paths that Wicd will be installed to"
|
description = "configure the paths that Wicd will be installed to"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user