add init_parser() and init_global_var() function

This commit is contained in:
lmluk
2024-09-05 10:08:19 +02:00
parent 0b3acf7cdb
commit 8b54a0ca83
3 changed files with 134 additions and 3 deletions

View File

@@ -0,0 +1,12 @@
from typing import List, Optional
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)