MCPcopy
hub / github.com/pex-tool/pex / _activate_pex

Function _activate_pex

pex/pex_bootstrapper.py:708–724  ·  view source on GitHub ↗
(
    entry_point,  # type: str
    pex_info,  # type: PexInfo
    venv_dir=None,  # type: Optional[str]
)

Source from the content-addressed store, hash-verified

706
707
708def _activate_pex(
709 entry_point, # type: str
710 pex_info, # type: PexInfo
711 venv_dir=None, # type: Optional[str]
712):
713 # type: (...) -> Iterator[str]
714
715 if pex_info.venv:
716 for location in _activate_venv_dir(entry_point, venv_dir=venv_dir):
717 yield location
718 return
719
720 from . import pex
721
722 yield entry_point
723 for distribution in pex.PEX(entry_point).activate():
724 yield distribution.location
725
726
727def _activate_venv_dir(

Callers 1

bootstrap_pexFunction · 0.85

Calls 3

_activate_venv_dirFunction · 0.85
PEXMethod · 0.80
activateMethod · 0.45

Tested by

no test coverage detected