MCPcopy Create free account
hub / github.com/boostorg/build / get_prefix

Function get_prefix

v2/tools/package.py:153–167  ·  view source on GitHub ↗
(package_name, requirements)

Source from the content-addressed store, hash-verified

151 get_manager().projects().current().mark_targets_as_explicit([target_name])
152
153def get_prefix(package_name, requirements):
154
155 specified = property.select("install-default-prefix", requirements)
156 if specified:
157 specified = ungrist(specified[0])
158 prefix = option.get("prefix", specified)
159 requirements = property.change(requirements, "install-default-prefix", None)
160 # Or some likely defaults if neither is given.
161 if not prefix:
162 if os.name == "nt":
163 prefix = "C:\\" + package_name
164 elif os.name == "posix":
165 prefix = "/usr/local"
166
167 return prefix
168

Callers 2

installFunction · 0.85
install_dataFunction · 0.85

Calls 2

ungristFunction · 0.90
getMethod · 0.80

Tested by

no test coverage detected