(self, call_log:Optional[Callable[[str], None]] = None)
| 320 | return res_sh + "\n" |
| 321 | |
| 322 | def _install_pip(self, call_log:Optional[Callable[[str], None]] = None) -> Optional[str]: |
| 323 | if not callable(call_log): |
| 324 | call_log = lambda x: print(x) |
| 325 | sh = self.activate_shell() + "\n" + " ".join([self.bin_path, "-u", "-m", "ensurepip"]) |
| 326 | return _run_command_with_call_log(sh, call_log) |
| 327 | |
| 328 | def pip_install(self, pkg: str, version: str= "", no_cache: bool=False, call_log:Optional[Callable[[str], None]] = None) -> Optional[str]: |
| 329 | if not self.pip_bin(): |
no test coverage detected