##// END OF EJS Templates
fixed some problems with python setup.py operations due to import problems
marcink -
r852:b76da6f2 beta
parent child Browse files
Show More
@@ -31,8 +31,12 b" VERSION = (1, 1, 0, 'beta')"
31 __version__ = '.'.join((str(each) for each in VERSION[:4]))
31 __version__ = '.'.join((str(each) for each in VERSION[:4]))
32 __dbversion__ = 2 #defines current db version for migrations
32 __dbversion__ = 2 #defines current db version for migrations
33
33
34 from rhodecode.lib.utils import get_current_revision
34 try:
35 _rev = get_current_revision()
35 from rhodecode.lib.utils import get_current_revision
36 _rev = get_current_revision()
37 except ImportError:
38 #this is needed when doing some setup.py operations
39 _rev = False
36
40
37 if len(VERSION) > 3 and _rev:
41 if len(VERSION) > 3 and _rev:
38 __version__ += ' [rev:%s]' % _rev[0]
42 __version__ += ' [rev:%s]' % _rev[0]
@@ -17,12 +17,12 b' requirements = ['
17 ]
17 ]
18
18
19 classifiers = ['Development Status :: 4 - Beta',
19 classifiers = ['Development Status :: 4 - Beta',
20 'Environment :: Web Environment',
20 'Environment :: Web Environment',
21 'Framework :: Pylons',
21 'Framework :: Pylons',
22 'Intended Audience :: Developers',
22 'Intended Audience :: Developers',
23 'License :: OSI Approved :: BSD License',
23 'License :: OSI Approved :: BSD License',
24 'Operating System :: OS Independent',
24 'Operating System :: OS Independent',
25 'Programming Language :: Python', ]
25 'Programming Language :: Python', ]
26
26
27 if sys.version_info < (2, 6):
27 if sys.version_info < (2, 6):
28 requirements.append("simplejson")
28 requirements.append("simplejson")
General Comments 0
You need to be logged in to leave comments. Login now