Show More
@@ -12,7 +12,7 b' Build-Depends:' | |||||
12 | unzip, |
|
12 | unzip, | |
13 | zip |
|
13 | zip | |
14 | Standards-Version: 3.9.4 |
|
14 | Standards-Version: 3.9.4 | |
15 |
X-Python-Version: >= 2. |
|
15 | X-Python-Version: >= 2.7 | |
16 |
|
16 | |||
17 | Package: mercurial |
|
17 | Package: mercurial | |
18 | Depends: |
|
18 | Depends: |
@@ -37,8 +37,8 b' BuildRequires: make, gcc, gettext' | |||||
37 | %if "%{?withpython}" |
|
37 | %if "%{?withpython}" | |
38 | BuildRequires: readline-devel, openssl-devel, ncurses-devel, zlib-devel, bzip2-devel |
|
38 | BuildRequires: readline-devel, openssl-devel, ncurses-devel, zlib-devel, bzip2-devel | |
39 | %else |
|
39 | %else | |
40 |
BuildRequires: python >= 2. |
|
40 | BuildRequires: python >= 2.7, python-devel, python-docutils >= 0.5 | |
41 |
Requires: python >= 2. |
|
41 | Requires: python >= 2.7 | |
42 | %endif |
|
42 | %endif | |
43 | # The hgk extension uses the wish tcl interpreter, but we don't enforce it |
|
43 | # The hgk extension uses the wish tcl interpreter, but we don't enforce it | |
44 | #Requires: tk |
|
44 | #Requires: tk |
@@ -5,8 +5,8 b'' | |||||
5 | # 'python setup.py --help' for more options |
|
5 | # 'python setup.py --help' for more options | |
6 |
|
6 | |||
7 | import sys, platform |
|
7 | import sys, platform | |
8 |
if sys.version_info < (2, |
|
8 | if sys.version_info < (2, 7, 0, 'final'): | |
9 |
raise SystemExit( |
|
9 | raise SystemExit('Mercurial requires Python 2.7 or later.') | |
10 |
|
10 | |||
11 | if sys.version_info[0] >= 3: |
|
11 | if sys.version_info[0] >= 3: | |
12 | printf = eval('print') |
|
12 | printf = eval('print') |
General Comments 0
You need to be logged in to leave comments.
Login now