MCPcopy
hub / github.com/astral-sh/python-build-standalone / run

Method run

pythonbuild/buildenv.py:217–224  ·  view source on GitHub ↗
(self, program, user="build", environment=None)

Source from the content-addressed store, hash-verified

215 )
216
217 def run(self, program, user="build", environment=None):
218 if user != "build":
219 raise Exception("cannot change user in temp directory builds")
220
221 if isinstance(program, str) and not program.startswith("/"):
222 program = str(self.td / program)
223
224 exec_and_log(program, cwd=self.td, env=environment)
225
226 def get_tools_archive(self, dest, name):
227 log("copying built files to %s" % dest)

Callers 15

runFunction · 0.45
run_commandFunction · 0.45
apply_source_patchFunction · 0.45
build_libffiFunction · 0.45
build_cpythonFunction · 0.45
run_dist_pythonFunction · 0.45
run_containerFunction · 0.45
build_environmentFunction · 0.45
mainFunction · 0.45
add_target_envFunction · 0.45
simple_buildFunction · 0.45

Calls 1

exec_and_logFunction · 0.70

Tested by 1

run_dist_pythonFunction · 0.36