__init__.py 513 B

123456789101112131415161718
  1. from typing import List, Optional
  2. from pip._internal.utils import _log
  3. # init_logging() must be called before any call to logging.getLogger()
  4. # which happens at import of most modules.
  5. _log.init_logging()
  6. def main(args: Optional[List[str]] = None) -> int:
  7. """This is preserved for old console scripts that may still be referencing
  8. it.
  9. For additional details, see https://github.com/pypa/pip/issues/7498.
  10. """
  11. from pip._internal.utils.entrypoints import _wrapper
  12. return _wrapper(args)