Skip to content

Commit

Permalink
Block Python <3.7 not only on linux (#7266)
Browse files Browse the repository at this point in the history
There's no reason for this check to be limited to linux.
  • Loading branch information
konstin committed Sep 10, 2024
1 parent 0e98700 commit c7ff70b
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions crates/uv-python/python/get_interpreter_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c7ff70b

Please sign in to comment.