Mercurial > public > mercurial-scm > hg
comparison setup.py @ 44852:fd3b94f1712d
merge with stable
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 26 May 2020 08:07:24 -0700 |
parents | 47787a48f469 91e509a12dbc |
children | 4c53c12b92d5 |
comparison
equal
deleted
inserted
replaced
44851:708ad5cf5e5a | 44852:fd3b94f1712d |
---|---|
11 # We cannot support Python 3.5.0, 3.5.1, 3.5.2 because of bug in | 11 # We cannot support Python 3.5.0, 3.5.1, 3.5.2 because of bug in |
12 # codecs.escape_encode() where it raises SystemError on empty bytestring | 12 # codecs.escape_encode() where it raises SystemError on empty bytestring |
13 # bug link: https://bugs.python.org/issue25270 | 13 # bug link: https://bugs.python.org/issue25270 |
14 supportedpy = ','.join( | 14 supportedpy = ','.join( |
15 [ | 15 [ |
16 '>=2.7', | 16 '>=2.7.4', |
17 '!=3.0.*', | 17 '!=3.0.*', |
18 '!=3.1.*', | 18 '!=3.1.*', |
19 '!=3.2.*', | 19 '!=3.2.*', |
20 '!=3.3.*', | 20 '!=3.3.*', |
21 '!=3.4.*', | 21 '!=3.4.*', |
52 | 52 |
53 # Attempt to guide users to a modern pip - this means that 2.6 users | 53 # Attempt to guide users to a modern pip - this means that 2.6 users |
54 # should have a chance of getting a 4.2 release, and when we ratchet | 54 # should have a chance of getting a 4.2 release, and when we ratchet |
55 # the version requirement forward again hopefully everyone will get | 55 # the version requirement forward again hopefully everyone will get |
56 # something that works for them. | 56 # something that works for them. |
57 if sys.version_info < (2, 7, 0, 'final'): | 57 if sys.version_info < (2, 7, 4, 'final'): |
58 pip_message = ( | 58 pip_message = ( |
59 'This may be due to an out of date pip. ' | 59 'This may be due to an out of date pip. ' |
60 'Make sure you have pip >= 9.0.1.' | 60 'Make sure you have pip >= 9.0.1.' |
61 ) | 61 ) |
62 try: | 62 try: |
72 # pip is new enough - it must be something else | 72 # pip is new enough - it must be something else |
73 pip_message = '' | 73 pip_message = '' |
74 except Exception: | 74 except Exception: |
75 pass | 75 pass |
76 error = """ | 76 error = """ |
77 Mercurial does not support Python older than 2.7. | 77 Mercurial does not support Python older than 2.7.4. |
78 Python {py} detected. | 78 Python {py} detected. |
79 {pip} | 79 {pip} |
80 """.format( | 80 """.format( |
81 py=sys.version_info, pip=pip_message | 81 py=sys.version_info, pip=pip_message |
82 ) | 82 ) |