(dest)
| 641 | |
| 642 | |
| 643 | def 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 |
no outgoing calls
no test coverage detected
searching dependent graphs…