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

Method _activate

pex/pex.py:274–284  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

272 yield dist
273
274 def _activate(self):
275 # type: () -> Sequence[Distribution]
276
277 activated_dists = [] # type: List[Distribution]
278 for env in self._loaded_envs:
279 activated_dists.extend(env.activate())
280
281 # Ensure that pkg_resources is not imported until at least every pex environment
282 # (i.e. PEX_PATH) has been merged into the environment
283 PEXEnvironment._declare_namespace_packages(activated_dists)
284 return activated_dists
285
286 def activate(self):
287 # type: () -> Sequence[Distribution]

Callers 2

activateMethod · 0.95

Calls 3

extendMethod · 0.80
activateMethod · 0.45