| 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] |