MCPcopy Create free account
hub / github.com/breach/thrust / copy_system_libraries

Function copy_system_libraries

scripts/create-dist.py:137–148  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

135
136
137def copy_system_libraries():
138 ldd = execute(['ldd', os.path.join(OUT_DIR, 'thrust_shell')])
139 lib_re = re.compile('\t(.*) => (.+) \(.*\)$')
140 for line in ldd.splitlines():
141 m = lib_re.match(line)
142 if not m:
143 continue
144 for i, library in enumerate(SYSTEM_LIBRARIES):
145 real_library = m.group(1)
146 if real_library.startswith(library):
147 shutil.copyfile(m.group(2), os.path.join(DIST_DIR, real_library))
148 SYSTEM_LIBRARIES[i] = real_library
149
150
151def create_version():

Callers 1

mainFunction · 0.85

Calls 1

executeFunction · 0.90

Tested by

no test coverage detected