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

Function extension_modules_config

pythonbuild/cpython.py:745–752  ·  view source on GitHub ↗

Loads the extension-modules.yml file.

(yaml_path: pathlib.Path)

Source from the content-addressed store, hash-verified

743
744
745def extension_modules_config(yaml_path: pathlib.Path):
746 """Loads the extension-modules.yml file."""
747 with yaml_path.open("r", encoding="utf-8") as fh:
748 data = yaml.load(fh, Loader=yaml.SafeLoader)
749
750 jsonschema.validate(data, EXTENSION_MODULES_SCHEMA)
751
752 return data

Callers 1

build_cpythonFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected