From c7ff70b2814c84fbec1279bb2674bb0f8990a945 Mon Sep 17 00:00:00 2001 From: konsti Date: Tue, 10 Sep 2024 22:15:41 +0200 Subject: [PATCH] Block Python <3.7 not only on linux (#7266) There's no reason for this check to be limited to linux. --- .../uv-python/python/get_interpreter_info.py | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/crates/uv-python/python/get_interpreter_info.py b/crates/uv-python/python/get_interpreter_info.py index 797b53b4d..d056d3851 100644 --- a/crates/uv-python/python/get_interpreter_info.py +++ b/crates/uv-python/python/get_interpreter_info.py @@ -442,19 +442,19 @@ def get_operating_system_and_architecture(): version = None architecture = version_arch - if operating_system == "linux": - if sys.version_info < (3, 7): - print( - json.dumps( - { - "result": "error", - "kind": "unsupported_python_version", - "python_version": format_full_version(sys.version_info), - } - ) + if sys.version_info < (3, 7): + print( + json.dumps( + { + "result": "error", + "kind": "unsupported_python_version", + "python_version": format_full_version(sys.version_info), + } ) - sys.exit(0) + ) + sys.exit(0) + if operating_system == "linux": # noinspection PyProtectedMember from .packaging._manylinux import _get_glibc_version