MCPcopy
hub / github.com/astral-sh/python-build-standalone / meets_python_maximum_version

Function meets_python_maximum_version

pythonbuild/cpython.py:239–246  ·  view source on GitHub ↗
(got: str, wanted: str)

Source from the content-addressed store, hash-verified

237
238
239def meets_python_maximum_version(got: str, wanted: str) -> bool:
240 parts = got.split(".")
241 got_major, got_minor = int(parts[0]), int(parts[1])
242
243 parts = wanted.split(".")
244 wanted_major, wanted_minor = int(parts[0]), int(parts[1])
245
246 return (got_major, got_minor) <= (wanted_major, wanted_minor)
247
248
249def derive_setup_local(

Callers 5

hack_project_filesFunction · 0.90
build_cpythonFunction · 0.90
build_cpython_hostFunction · 0.90
build_cpythonFunction · 0.90
derive_setup_localFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected