👁 查看:__init__.py
路径:/usr/lib/python3.9/site-packages/pip/_internal/__init__.py
大小:587 B · 修改:2026-05-23 08:59:52 · 权限:0644 · 只读
from typing import List, Optional

import pip._internal.utils.inject_securetransport  # noqa
from pip._internal.utils import _log

# init_logging() must be called before any call to logging.getLogger()
# which happens at import of most modules.
_log.init_logging()


def main(args: (Optional[List[str]]) = None) -> int:
    """This is preserved for old console scripts that may still be referencing
    it.

    For additional details, see https://github.com/pypa/pip/issues/7498.
    """
    from pip._internal.utils.entrypoints import _wrapper

    return _wrapper(args, _nowarn=True)