def get_pex_info(entry_point):
  from . import pex_info

  pex_info_content = read_pex_info_content(entry_point)
  if pex_info_content:
    return pex_info.PexInfo.from_json(pex_info_content)
  raise ValueError('Invalid entry_point: %s' % entry_point)


# TODO(wickman) Remove once resolved (#91):
#   https://bitbucket.org/pypa/setuptools/issue/154/build_zipmanifest-results-should-be
Return the PexInfo object for an entry point.
dataset/ETHPy150Open pantsbuild/pex/pex/pex_bootstrapper.py/get_pex_info