__init__.py 573 B

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