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

Function select

Tools/freeze/checkextensions.py:39–55  ·  view source on GitHub ↗
(e, mods, vars, mod, skipofiles)

Source from the content-addressed store, hash-verified

37 return files, modules
38
39def select(e, mods, vars, mod, skipofiles):
40 files = []
41 for w in mods[mod]:
42 w = treatword(w)
43 if not w:
44 continue
45 w = expandvars(w, vars)
46 for w in w.split():
47 if skipofiles and w[-2:] == '.o':
48 continue
49 # Assume $var expands to absolute pathname
50 if w[0] not in ('-', '$') and w[-2:] in ('.o', '.a'):
51 w = os.path.join(e, w)
52 if w[:2] in ('-L', '-R') and w[2:3] != '$':
53 w = w[:2] + os.path.join(e, w[2:])
54 files.append(w)
55 return files
56
57cc_flags = ['-I', '-D', '-U']
58cc_exts = ['.c', '.C', '.cc', '.c++']

Callers 1

checkextensionsFunction · 0.70

Calls 5

treatwordFunction · 0.85
expandvarsFunction · 0.70
splitMethod · 0.45
joinMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…