author | Gregory Szorc <gps@mozilla.com> |
Fri, 01 Feb 2013 10:36:28 -0800 | |
changeset 130353 | 95bec0e5a600654c34f4b9f280e4293c71055885 |
parent 130352 | a4f8cb70cc5d1949fdcf2b1347c4bd43494a06bd |
child 130354 | b546bd987ed4007bcf9006b21f3234157ce7d71a |
push id | 2323 |
push user | bbajaj@mozilla.com |
push date | Mon, 01 Apr 2013 19:47:02 +0000 |
treeherder | mozilla-beta@7712be144d91 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | ted |
bugs | 836877 |
milestone | 21.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
--- a/mach +++ b/mach @@ -7,19 +7,19 @@ from __future__ import print_function, u import os import platform import sys # Ensure we are running Python 2.7+. We put this check here so we generate a # user-friendly error message rather than a cryptic stack trace on module # import. -if sys.version_info[0] == 2 and sys.version_info[1] < 7: - print('Python 2.7 or above is required to run mach.') - print('You are running', platform.python_version()) +if sys.version_info[0] != 2 or sys.version_info[1] < 7: + print('Python 2.7 or above (but not Python 3) is required to run mach.') + print('You are running Python', platform.python_version()) sys.exit(1) # TODO Bug 794506 Integrate with the in-tree virtualenv configuration. SEARCH_PATHS = [ 'python/mach', 'python/mozboot', 'python/mozbuild', 'build',