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

Function prep

PCbuild/prepare_ssl.py:116–143  ·  view source on GitHub ↗
(arch)

Source from the content-addressed store, hash-verified

114 print("WARN: failed to patch ms\\uplink.c")
115
116def prep(arch):
117 makefile_template = "ms\\ntdll{}.mak"
118 generated_makefile = makefile_template.format('')
119 if arch == "x86":
120 configure = "VC-WIN32"
121 do_script = "ms\\do_nasm"
122 suffix = "32"
123 elif arch == "amd64":
124 configure = "VC-WIN64A"
125 do_script = "ms\\do_win64a"
126 suffix = "64"
127 else:
128 raise ValueError('Unrecognized platform: %s' % arch)
129
130 print("Creating the makefiles...")
131 sys.stdout.flush()
132 # run configure, copy includes, patch files
133 run_configure(configure, do_script)
134 makefile = makefile_template.format(suffix)
135 try:
136 os.unlink(makefile)
137 except FileNotFoundError:
138 pass
139 os.rename(generated_makefile, makefile)
140 copy_includes(makefile, suffix)
141
142 print('patching ms\\uplink.c...')
143 fix_uplink()
144
145def main():
146 if len(sys.argv) == 1:

Callers 1

mainFunction · 0.85

Calls 7

run_configureFunction · 0.85
copy_includesFunction · 0.85
fix_uplinkFunction · 0.85
formatMethod · 0.45
flushMethod · 0.45
unlinkMethod · 0.45
renameMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…