MCPcopy Index your code
hub / github.com/python/cpython / get_props_layout

Function get_props_layout

PC/layout/support/props.py:83–95  ·  view source on GitHub ↗
(ns)

Source from the content-addressed store, hash-verified

81
82
83def get_props_layout(ns):
84 if ns.include_all or ns.include_props:
85 # TODO: Filter contents of props file according to included/excluded items
86 d = dict(PROPS_DATA)
87 if not d.get("PYTHON_PLATFORM"):
88 d["PYTHON_PLATFORM"] = {
89 "win32": "Win32",
90 "amd64": "X64",
91 "arm32": "ARM",
92 "arm64": "ARM64",
93 }[ns.arch]
94 props = PROPS_TEMPLATE.format_map(d)
95 yield "python.props", ("python.props", props.encode("utf-8"))

Callers 1

get_layoutFunction · 0.85

Calls 3

format_mapMethod · 0.80
getMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…