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