| 872 | |
| 873 | @attr.s(frozen=True) |
| 874 | class VenvFactory(object): |
| 875 | python_version = attr.ib() # type: str |
| 876 | _factory = attr.ib() # type: Callable[[], Virtualenv] |
| 877 | |
| 878 | def create_venv(self): |
| 879 | # type: () -> Tuple[str, str] |
| 880 | venv = self._factory() |
| 881 | return venv.interpreter.binary, venv.bin_path("pip") |
| 882 | |
| 883 | |
| 884 | def all_python_venvs(system_site_packages=False): |
no outgoing calls
no test coverage detected
searching dependent graphs…