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

Function tweak_tcl_build

Mac/BuildScript/build-installer.py:212–230  ·  view source on GitHub ↗
(basedir, archList)

Source from the content-addressed store, hash-verified

210
211
212def tweak_tcl_build(basedir, archList):
213 with open("Makefile", "r") as fp:
214 contents = fp.readlines()
215
216 # For reasons I don't understand the tcl configure script
217 # decides that some stdlib symbols aren't present, before
218 # deciding that strtod is broken.
219 new_contents = []
220 for line in contents:
221 if line.startswith("COMPAT_OBJS"):
222 # note: the space before strtod.o is intentional,
223 # the detection of a broken strtod results in
224 # "fixstrod.o" on this line.
225 for nm in ("strstr.o", "strtoul.o", " strtod.o"):
226 line = line.replace(nm, "")
227 new_contents.append(line)
228
229 with open("Makefile", "w") as fp:
230 fp.writelines(new_contents)
231
232# List of names of third party software built with this installer.
233# The names will be inserted into the rtf version of the License.

Callers

nothing calls this directly

Calls 6

openFunction · 0.50
readlinesMethod · 0.45
startswithMethod · 0.45
replaceMethod · 0.45
appendMethod · 0.45
writelinesMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…