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

Function in_build

PC/layout/main.py:128–146  ·  view source on GitHub ↗
(f, dest="", new_name=None, no_lib=False)

Source from the content-addressed store, hash-verified

126
127def get_layout(ns):
128 def in_build(f, dest="", new_name=None, no_lib=False):
129 n, _, x = f.rpartition(".")
130 n = new_name or n
131 src = ns.build / f
132 if ns.debug and src not in REQUIRED_DLLS:
133 if not "_d." in src.name:
134 src = src.parent / (src.stem + "_d" + src.suffix)
135 if "_d." not in f:
136 n += "_d"
137 f = n + "." + x
138 yield dest + n + "." + x, src
139 if ns.include_symbols:
140 pdb = src.with_suffix(".pdb")
141 if pdb.is_file():
142 yield dest + n + ".pdb", pdb
143 if ns.include_dev and not no_lib:
144 lib = src.with_suffix(".lib")
145 if lib.is_file():
146 yield "libs/" + n + ".lib", lib
147
148 source = "python.exe"
149 sourcew = "pythonw.exe"

Callers 1

get_layoutFunction · 0.85

Calls 3

rpartitionMethod · 0.45
with_suffixMethod · 0.45
is_fileMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…