def _bootstrap(entry_point): from .pex_info import PexInfo pex_info = PexInfo.from_pex(entry_point) pex_info.update(PexInfo.from_env()) pex_warnings.configure_warnings(pex_info, ENV) return pex_info
def exercise_warnings(pex_info, **env): # type: (PexInfo, **str) -> List[warnings.WarningMessage] with warnings.catch_warnings(record=True) as events: pex_warnings.configure_warnings(pex_info, env=Variables(environ=env)) pex_warnings.warn("test") assert events is not None return events
def _bootstrap(entry_point): from .pex_info import PexInfo pex_info = PexInfo.from_pex(entry_point) pex_warnings.configure_warnings(pex_info) from .finders import register_finders register_finders() return pex_info
def exercise_warnings(pex_info, **env): with warnings.catch_warnings(record=True) as events: pex_warnings.configure_warnings(pex_info, env=Variables(environ=env)) pex_warnings.warn('test') return events
def _bootstrap(entry_point): from .pex_info import PexInfo pex_info = PexInfo.from_pex(entry_point) pex_warnings.configure_warnings(pex_info) return pex_info
def _bootstrap(entry_point): # type: (str) -> PexInfo pex_info = PexInfo.from_pex(entry_point) # type: PexInfo pex_info.update(PexInfo.from_env()) pex_warnings.configure_warnings(pex_info, ENV) return pex_info