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

Function copy_includes

PCbuild/prepare_ssl.py:68–86  ·  view source on GitHub ↗
(makefile, suffix)

Source from the content-addressed store, hash-verified

66
67
68def copy_includes(makefile, suffix):
69 dir = 'inc'+suffix+'\\openssl'
70 try:
71 os.makedirs(dir)
72 except OSError:
73 if not os.path.isdir(dir):
74 raise
75 copy_if_different = r'$(PERL) $(SRC_D)\util\copy-if-different.pl'
76 with open(makefile) as fin:
77 for line in fin:
78 if copy_if_different in line:
79 perl, script, src, dest = line.split()
80 if not '$(INCO_D)' in dest:
81 continue
82 # We're in the root of the source tree
83 src = src.replace('$(SRC_D)', '.').strip('"')
84 dest = dest.strip('"').replace('$(INCO_D)', dir)
85 print('copying', src, 'to', dest)
86 copy(src, dest)
87
88
89def run_configure(configure, do_script):

Callers 1

prepFunction · 0.85

Calls 6

copyFunction · 0.90
openFunction · 0.50
isdirMethod · 0.45
splitMethod · 0.45
stripMethod · 0.45
replaceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…