This commit is contained in:
wittmannzl103469 committed 2026-11-05 15:08:42 +01:00
1 parent de41a02749
commit 9af09cebd3
764 files changed
+54218 -78859

No files matched your search

@@ -10,7 +10,7 @@ if sys.path[0] in ("", os.getcwd()):
# If we are running from a wheel, add the wheel to sys.path
# This allows the usage python pip-*.whl/pip install pip-*.whl
if __package__ == "":
if not __spec__ or __spec__.parent == "":
# __file__ is pip-*.whl/pip/__main__.py
# first dirname call strips of '/__main__.py', second strips off '/pip'
# Resulting path is the name of the wheel itself
@@ -19,6 +19,6 @@ if __package__ == "":
sys.path.insert(0, path)
if __name__ == "__main__":
from pip._internal.cli.main import main as _main
from pip._internal.cli.main import cli as _main
sys.exit(_main())