mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-03 18:38:21 +00:00
Don't use walrus operator in interpreter query script (#14108)
Fix `uv run -p 3.7` by not using a walrus operator. Python 3.7 isn't really supported anymore, but there's no reason to break interpreter discovery for it.
This commit is contained in:
parent
3d4f0c934e
commit
10e1d17cfc
1 changed files with 2 additions and 1 deletions
|
@ -255,5 +255,6 @@ def platform_tags(archs: Sequence[str]) -> Iterator[str]:
|
|||
if _is_compatible(arch, glibc_version):
|
||||
yield "manylinux_{}_{}_{}".format(*glibc_version, arch)
|
||||
# Handle the legacy manylinux1, manylinux2010, manylinux2014 tags.
|
||||
if legacy_tag := _LEGACY_MANYLINUX_MAP.get(glibc_version):
|
||||
legacy_tag = _LEGACY_MANYLINUX_MAP.get(glibc_version)
|
||||
if legacy_tag:
|
||||
yield f"{legacy_tag}_{arch}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue