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