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

Function target_needs

pythonbuild/utils.py:98–107  ·  view source on GitHub ↗

Obtain the dependencies needed to build the specified target.

(yaml_path: pathlib.Path, target: str)

Source from the content-addressed store, hash-verified

96
97
98def target_needs(yaml_path: pathlib.Path, target: str):
99 """Obtain the dependencies needed to build the specified target."""
100 settings = get_targets(yaml_path)[target]
101
102 needs = set(settings["needs"])
103
104 # Ship libedit linked readline extension to avoid a GPL dependency.
105 needs.discard("readline")
106
107 return needs
108
109
110def release_tag_from_git():

Callers 1

build_cpythonFunction · 0.90

Calls 1

get_targetsFunction · 0.85

Tested by

no test coverage detected