Bug 1734402 - Bump Mach's minimum Python version to 3.7 r=firefox-build-system-reviewers,glandium

Differential Revision: https://phabricator.services.mozilla.com/D171151
This commit is contained in:
Alex Hochheiden 2023-02-28 21:25:01 +00:00
parent 219bcae35c
commit c33316db44

6
mach
View File

@ -35,10 +35,10 @@ def check_and_get_mach(dir_path):
def main(args):
# Ensure we are running Python 3.6+. We run this check as soon as
# Ensure we are running Python 3.7+. We run this check as soon as
# possible to avoid a cryptic import/usage error.
if sys.version_info < (3, 6):
print("Python 3.6+ is required to run mach.")
if sys.version_info < (3, 7):
print("Python 3.7+ is required to run mach.")
print("You are running Python {0}".format(platform.python_version()))
if sys.platform.startswith("linux"):
print(dedent("""