def pexinfo(self): info = PexInfo.default() for repo in self._repositories: info.add_repository(repo) for index in self._indices: info.add_index(index) info.zip_safe = self._zip_safe info.always_write_cache = self._always_write_cache info.inherit_path = self._inherit_path info.entry_point = self.entry_point info.ignore_errors = self._ignore_errors return info
def __init__(self, path=None): self._chroot = Chroot(path or tempfile.mkdtemp()) self._pex_info = PexInfo.default() self._frozen = False
def __init__(self, pex=sys.argv[0]): self._pex = PythonDirectoryWrapper.get(pex) self._pex_info = PexInfo.from_pex(self._pex) self._env = PEXEnvironment(self._pex.path(), self._pex_info)