Show More
@@ -23,6 +23,7 b'' | |||
|
23 | 23 | # |
|
24 | 24 | # You should have received a copy of the GNU General Public License |
|
25 | 25 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
26 | import sys | |
|
26 | 27 | import platform |
|
27 | 28 | |
|
28 | 29 | VERSION = (1, 2, 5) |
@@ -30,6 +31,7 b' VERSION = (1, 2, 5)' | |||
|
30 | 31 | __dbversion__ = 3 # defines current db version for migrations |
|
31 | 32 | __platform__ = platform.system() |
|
32 | 33 | __license__ = 'GPLv3' |
|
34 | __py_version__ = sys.version_info | |
|
33 | 35 | |
|
34 | 36 | PLATFORM_WIN = ('Windows') |
|
35 | 37 | PLATFORM_OTHERS = ('Linux', 'Darwin', 'FreeBSD', 'OpenBSD', 'SunOS') |
@@ -42,7 +44,6 b' requirements = [' | |||
|
42 | 44 | "SQLAlchemy==0.7.4", |
|
43 | 45 | "Mako==0.5.0", |
|
44 | 46 | "pygments>=1.4", |
|
45 | "mercurial>=2.0,<2.1", | |
|
46 | 47 | "whoosh<1.8", |
|
47 | 48 | "celery>=2.2.5,<2.3", |
|
48 | 49 | "babel", |
@@ -52,6 +53,16 b' requirements = [' | |||
|
52 | 53 | "webob==1.0.8" |
|
53 | 54 | ] |
|
54 | 55 | |
|
56 | if __py_version__ < (2, 6): | |
|
57 | requirements.append("simplejson") | |
|
58 | requirements.append("pysqlite") | |
|
59 | ||
|
60 | if __platform__ in PLATFORM_WIN: | |
|
61 | requirements.append("mercurial==2.0.1") | |
|
62 | else: | |
|
63 | requirements.append("py-bcrypt") | |
|
64 | requirements.append("mercurial==2.0.2") | |
|
65 | ||
|
55 | 66 | |
|
56 | 67 | try: |
|
57 | 68 | from rhodecode.lib import get_current_revision |
@@ -1,13 +1,10 b'' | |||
|
1 | 1 | import sys |
|
2 | 2 | from rhodecode import get_version |
|
3 | from rhodecode import __platform__ | |
|
4 | 3 | from rhodecode import __license__ |
|
5 |
from rhodecode import |
|
|
4 | from rhodecode import __py_version__ | |
|
6 | 5 | from rhodecode import requirements |
|
7 | 6 | |
|
8 | py_version = sys.version_info | |
|
9 | ||
|
10 | if py_version < (2, 5): | |
|
7 | if __py_version__ < (2, 5): | |
|
11 | 8 | raise Exception('RhodeCode requires python 2.5 or later') |
|
12 | 9 | |
|
13 | 10 | |
@@ -25,13 +22,6 b" classifiers = ['Development Status :: 5 " | |||
|
25 | 22 | 'Programming Language :: Python :: 2.6', |
|
26 | 23 | 'Programming Language :: Python :: 2.7', ] |
|
27 | 24 | |
|
28 | if py_version < (2, 6): | |
|
29 | requirements.append("simplejson") | |
|
30 | requirements.append("pysqlite") | |
|
31 | ||
|
32 | if __platform__ in PLATFORM_OTHERS: | |
|
33 | requirements.append("py-bcrypt") | |
|
34 | ||
|
35 | 25 | |
|
36 | 26 | # additional files from project that goes somewhere in the filesystem |
|
37 | 27 | # relative to sys.prefix |
General Comments 0
You need to be logged in to leave comments.
Login now