(pkg_name: str)
| 123 | setup_env() |
| 124 | |
| 125 | def _install_python_package(pkg_name: str) -> bool: |
| 126 | try: |
| 127 | subprocess.check_call( |
| 128 | [sys.executable, "-m", "pip", "install", "--upgrade", "pip", pkg_name], |
| 129 | stdout=sys.stdout, |
| 130 | stderr=sys.stderr, |
| 131 | timeout=120, |
| 132 | ) |
| 133 | return True |
| 134 | except Exception: |
| 135 | return False |
| 136 | |
| 137 | |
| 138 | def _bootstrap_dependencies(): |
no outgoing calls
no test coverage detected