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

Function checkextensions

Tools/freeze/checkextensions_win32.py:57–80  ·  view source on GitHub ↗
(unknown, extra_inis, prefix)

Source from the content-addressed store, hash-verified

55 return self.linkerLibs
56
57def checkextensions(unknown, extra_inis, prefix):
58 # Create a table of frozen extensions
59
60 defaultMapName = os.path.join( os.path.split(sys.argv[0])[0], "extensions_win32.ini")
61 if not os.path.isfile(defaultMapName):
62 sys.stderr.write("WARNING: %s can not be found - standard extensions may not be found\n" % defaultMapName)
63 else:
64 # must go on end, so other inis can override.
65 extra_inis.append(defaultMapName)
66
67 ret = []
68 for mod in unknown:
69 for ini in extra_inis:
70# print "Looking for", mod, "in", win32api.GetFullPathName(ini),"...",
71 defn = get_extension_defn( mod, ini, prefix )
72 if defn is not None:
73# print "Yay - found it!"
74 ret.append( defn )
75 break
76# print "Nope!"
77 else: # For not broken!
78 sys.stderr.write("No definition of module %s in any specified map file.\n" % (mod))
79
80 return ret
81
82def get_extension_defn(moduleName, mapFileName, prefix):
83 if win32api is None: return None

Callers

nothing calls this directly

Calls 6

get_extension_defnFunction · 0.85
joinMethod · 0.45
splitMethod · 0.45
isfileMethod · 0.45
writeMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…