mirror of https://github.com/astral-sh/uv
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
|
|
@ -255,5 +255,6 @@ def platform_tags(archs: Sequence[str]) -> Iterator[str]:
|
||||||
if _is_compatible(arch, glibc_version):
|
if _is_compatible(arch, glibc_version):
|
||||||
yield "manylinux_{}_{}_{}".format(*glibc_version, arch)
|
yield "manylinux_{}_{}_{}".format(*glibc_version, arch)
|
||||||
# Handle the legacy manylinux1, manylinux2010, manylinux2014 tags.
|
# 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}"
|
yield f"{legacy_tag}_{arch}"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue