##// END OF EJS Templates
setup: tweak error message for Python 3...
Gregory Szorc -
r42366:cd1bede3 stable
parent child Browse files
Show More
@@ -85,10 +85,21 b' if sys.version_info[0] != 2:'
85
85
86 if badpython:
86 if badpython:
87 error = """
87 error = """
88 Mercurial only supports Python 2.7.
89 Python {py} detected.
88 Python {py} detected.
90 Please re-run with Python 2.7.
89
91 """.format(py=sys.version_info)
90 Mercurial currently has beta support for Python 3 and use of Python 2.7 is
91 recommended for the best experience.
92
93 Please re-run with Python 2.7 for a faster, less buggy experience.
94
95 If you would like to beta test Mercurial with Python 3, this error can
96 be suppressed by defining the HGPYTHON3 environment variable when invoking
97 this command. No special environment variables or configuration changes are
98 necessary to run `hg` with Python 3.
99
100 See https://www.mercurial-scm.org/wiki/Python3 for more on Mercurial's
101 Python 3 support.
102 """.format(py='.'.join('%d' % x for x in sys.version_info[0:2]))
92
103
93 printf(error, file=sys.stderr)
104 printf(error, file=sys.stderr)
94 sys.exit(1)
105 sys.exit(1)
General Comments 0
You need to be logged in to leave comments. Login now