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

Function meets_python_minimum_version

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

Source from the content-addressed store, hash-verified

227
228
229def meets_python_minimum_version(got: str, wanted: str) -> bool:
230 parts = got.split(".")
231 got_major, got_minor = int(parts[0]), int(parts[1])
232
233 parts = wanted.split(".")
234 wanted_major, wanted_minor = int(parts[0]), int(parts[1])
235
236 return (got_major, got_minor) >= (wanted_major, wanted_minor)
237
238
239def meets_python_maximum_version(got: str, wanted: str) -> bool:

Callers 8

hack_propsFunction · 0.90
hack_project_filesFunction · 0.90
build_cpythonFunction · 0.90
mainFunction · 0.90
build_cpython_hostFunction · 0.90
build_cpythonFunction · 0.90
parse_setup_lineFunction · 0.85
derive_setup_localFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected