MCPcopy Index your code
hub / github.com/astral-sh/python-build-standalone / create_python_build_entry

Function create_python_build_entry

ci-matrix.py:371–392  ·  view source on GitHub ↗
(
    base_entry: dict[str, Any],
    python_version: str,
    build_option: str,
    config: dict[str, Any],
)

Source from the content-addressed store, hash-verified

369
370
371def create_python_build_entry(
372 base_entry: dict[str, Any],
373 python_version: str,
374 build_option: str,
375 config: dict[str, Any],
376) -> dict[str, Any]:
377 entry = base_entry.copy()
378 entry.update(
379 {
380 "python": python_version,
381 "build_options": build_option,
382 }
383 )
384 if "vs_version_override_conditional" in config:
385 conditional = config["vs_version_override_conditional"]
386 min_version = conditional["minimum-python-version"]
387 if meets_conditional_version(python_version, min_version):
388 entry["vs_version"] = conditional["vs_version"]
389 # TODO remove once VS 2026 is available in 'standard' runnners
390 if entry.get("vs_version") == "2026":
391 entry["runner"] = "windows-2025-vs2026"
392 return entry
393
394
395def add_python_build_entries_for_config(

Callers 1

Calls 2

updateMethod · 0.80

Tested by

no test coverage detected