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

Function bootstrap_pex_env

pex/pex_bootstrapper.py:782–793  ·  view source on GitHub ↗

Bootstrap the current runtime environment using a given pex.

(entry_point)

Source from the content-addressed store, hash-verified

780# NB: This helper is used by third party libs like https://github.com/wickman/lambdex and
781# https://github.com/kwlzn/pyuwsgi_pex.
782def bootstrap_pex_env(entry_point):
783 # type: (str) -> None
784 """Bootstrap the current runtime environment using a given pex."""
785 pex_info = _bootstrap(entry_point)
786
787 from .environment import PEXEnvironment
788
789 PEXEnvironment.mount(entry_point, pex_info).activate()
790
791 from . import bootstrap
792
793 bootstrap.demote()

Callers

nothing calls this directly

Calls 4

_bootstrapFunction · 0.85
mountMethod · 0.80
demoteMethod · 0.80
activateMethod · 0.45

Tested by

no test coverage detected