예제 #1
0
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
예제 #2
0
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
예제 #3
0
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
예제 #4
0
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
예제 #5
0
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
예제 #6
0
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
예제 #7
0
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
예제 #8
0
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