Skip to content

Commit a643cc8

Browse files
authored
Merge pull request #12536 from sbidoul/rm-pip3.x-entrypoint
2 parents 0059f93 + 83da7cb commit a643cc8

File tree

3 files changed

+8
-12
lines changed

3 files changed

+8
-12
lines changed

news/12536.bugfix.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Remove the incorrect pip3.x console entrypoint from the pip wheel. This console
2+
script continue to be generated by pip when it installs itself.

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)