Function
unzip_dir
(
pex_root, # type: str
pex_hash, # type: str
expand_pex_root=True, # type: bool
)
Source from the content-addressed store, hash-verified
| 799 | |
| 800 | |
| 801 | def unzip_dir( |
| 802 | pex_root, # type: str |
| 803 | pex_hash, # type: str |
| 804 | expand_pex_root=True, # type: bool |
| 805 | ): |
| 806 | # type: (...) -> UnzipDir |
| 807 | |
| 808 | # N.B.: We need lazy import gymnastics here since CacheType uses Variables for PEX_ROOT. |
| 809 | from pex.cache.dirs import UnzipDir |
| 810 | |
| 811 | pex_root = _expand_pex_root(pex_root) if expand_pex_root else pex_root |
| 812 | return UnzipDir.create(pex_hash=pex_hash, pex_root=pex_root) |
| 813 | |
| 814 | |
| 815 | def venv_dir( |