MCPcopy Index your code
hub / github.com/pex-tool/pex / bootstrap_python_installer

Function bootstrap_python_installer

testing/__init__.py:643–652  ·  view source on GitHub ↗
(dest)

Source from the content-addressed store, hash-verified

641
642
643def bootstrap_python_installer(dest):
644 # type: (str) -> None
645 for index in range(3):
646 try:
647 subprocess.check_call(args=["git", "clone", "--depth", "1", PYENV_GIT_URL, dest])
648 return
649 except subprocess.CalledProcessError as e:
650 print("Error cloning pyenv on attempt", index + 1, "of 3:", e, file=sys.stderr)
651 continue
652 raise RuntimeError("Could not clone pyenv from git after 3 tries.")
653
654
655# NB: We keep the pool of bootstrapped interpreters as small as possible to avoid timeouts in CI

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…