Skip to content

Commit 4d0a49b

Browse files
committed
Remove the pip3.x entrypoint from the pip wheel
The pip3.x entrypoint in the pip wheel was misleading, because the pip wheel works for any python 3 version. Pip continues to special-case itself to generate that version specific entry point when it installs itself.
1 parent 3898741 commit 4d0a49b

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[project]
2-
dynamic = ["version", "scripts"]
2+
dynamic = ["version"]
33

44
name = "pip"
55
description = "The PyPA recommended tool for installing Python packages."
@@ -29,6 +29,10 @@ authors = [
2929
# When changing this value, please change the other copy as well.
3030
requires-python = ">=3.8"
3131

32+
[project.scripts]
33+
pip = "pip._internal.cli.main:main"
34+
pip3 = "pip._internal.cli.main:main"
35+
3236
[project.urls]
3337
Homepage = "https://pip.pypa.io/"
3438
Documentation = "https://pip.pypa.io"

setup.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
import sys
2-
31
from setuptools import setup
42

5-
setup(
6-
entry_points={
7-
"console_scripts": [
8-
"pip=pip._internal.cli.main:main",
9-
f"pip{sys.version_info[0]}=pip._internal.cli.main:main",
10-
"pip{}.{}=pip._internal.cli.main:main".format(*sys.version_info[:2]),
11-
],
12-
},
13-
)
3+
setup()

0 commit comments

Comments
 (0)