Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document special casing pip entrypoints #1505

Open
konstin opened this issue Feb 21, 2024 · 2 comments
Open

Document special casing pip entrypoints #1505

konstin opened this issue Feb 21, 2024 · 2 comments
Labels
component: specifications type: discussion Discussion of general ideas, design, etc.

Comments

@konstin
Copy link
Contributor

konstin commented Feb 21, 2024

When installing entrypoints, pip special cases itself: It will always create pip, pip{major} and pip{major}.{minor} entrypoints, even the universal pip wheel has hardcoded pip, pip3 and pip3.10 entrypoints (https://inspector.pypi.io/project/pip/24.0/packages/8a/6a/19e9fe04fca059ccf770861c7d5721ab4c2aebc539889e97c7977528a53b/pip-24.0-py3-none-any.whl/pip-24.0.dist-info/entry_points.txt). It should be documented that alternative installers also need to special to avoid virtual environments where the pip executable version mismatches the python version (astral-sh/uv#1593).

CC @pradyunsg

@sbidoul
Copy link
Member

sbidoul commented Feb 21, 2024

I'm not entirely sure we should document this.

The presence of the pip3.x entry points in the pip wheels, I personally consider that a bug that should be fixed in pip.

pip could then continue to generate the pip3.x entry point when it installs itself, for the sake of backward compatibility, but it may not be necessary to mandate other installers to do so.

@chrysle chrysle added component: specifications type: discussion Discussion of general ideas, design, etc. labels Feb 21, 2024
@sinoroc
Copy link
Contributor

sinoroc commented Feb 21, 2024

Right, this (incredibly unexpected) behavior from pip caused me some headache as well: pypa/pip#8010

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: specifications type: discussion Discussion of general ideas, design, etc.
Projects
None yet
Development

No branches or pull requests

5 participants
@sbidoul @sinoroc @konstin @chrysle and others