mirror of https://github.com/astral-sh/uv
Fix Pyston tags (#16972)
This was discovered by https://github.com/astral-sh/uv/pull/16074, where the wrong tag now fails the Pyston integration test. I'm not sure what the exact schema of the cache tag is, but since the project is dead, I don't expect any new non-matching versions to follow.
This commit is contained in:
parent
2abe56a357
commit
2748dce860
|
|
@ -46,6 +46,16 @@ if hasattr(sys, "implementation"):
|
|||
r"\1.\2",
|
||||
sys.implementation.cache_tag,
|
||||
)
|
||||
elif implementation_name == "pyston":
|
||||
# Pyston reports the CPython version as sys.implementation.version,
|
||||
# so we need to discover the Pyston version from the cache_tag
|
||||
import re
|
||||
|
||||
implementation_version = re.sub(
|
||||
r"pyston-(\d)(\d+)",
|
||||
r"\1.\2",
|
||||
sys.implementation.cache_tag,
|
||||
)
|
||||
else:
|
||||
implementation_version = format_full_version(sys.implementation.version)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in New Issue