Revert "mach: switch to uv for managing python venv (#34504)" (#34548)

This reverts commit 4103421ba5.

Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
This commit is contained in:
Mukilan Thiyagarajan 2024-12-10 09:13:50 +05:30 committed by GitHub
parent 3f69ef2303
commit 2f64dde623
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
22 changed files with 80 additions and 100 deletions

7
mach
View file

@ -9,9 +9,10 @@ import sys
# Destructure because version_info > max_ver is true when running the same version.
ver = (sys.version_info[0], sys.version_info[1])
min_ver = (3, 10)
if ver < min_ver:
print("mach requires at least version 3.{0} of Python. The version of Python installed in this system is {1}.{2}" \
.format(min_ver[1], ver[0], ver[1]))
max_ver = (3, 12) # WPT does not support Python 3.13. See issue #34095.
if ver < min_ver or ver > max_ver:
print("mach does not support python {0}.{1}, please install 3.{2} <= python <= 3.{3}" \
.format(ver[0], ver[1], min_ver[1], max_ver[1]))
sys.exit(1)
def main(args):