MCPcopy Create free account
hub / github.com/pex-tool/pex / VenvFactory

Class VenvFactory

testing/__init__.py:874–881  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

872
873@attr.s(frozen=True)
874class 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
884def all_python_venvs(system_site_packages=False):

Callers 1

all_python_venvsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…