Skip to content

Define all old pip entrypoints #7498

Closed
@chrahunt

Description

What's the problem this feature will solve?

Tons of users are experiencing problems related to #5599, as evidenced by the traffic that we're getting to related issues (past 2 weeks):

Link Views Unique Visitors
#5447 11,368 9,005
#5221 3,252 2,733
#5240 2,398 2,068
#5599 2,247 1,857

This probably leads to a lot of negative feelings not just for pip, but the Python packaging ecosystem in general.

Describe the solution you'd like

Move the current entrypoint from pip._internal.main:main to pip._internal.cli.main:main (or some other location).

Create a function for every known past entrypoint:

  • pip._internal.main:main
  • pip._internal:main
  • pip:main

At the very least the functions should invoke the correct current pip entrypoint. This alone would prevent a lot of needless suffering and should be easy to implement and test.

Later we could also consider printing a warning, but I'd rather handle that as a separate issue since this is useful on its own.

Alternative Solutions

  • do nothing

Additional context

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    auto-lockedOutdated issues that have been locked by automationstate: needs discussionThis needs some more discussiontype: enhancementImprovements to functionality

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions