Skip to content

Commit

Permalink
Merge pull request #12536 from sbidoul/rm-pip3.x-entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
uranusjr authored Feb 24, 2024
2 parents 0059f93 + 83da7cb commit a643cc8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
2 changes: 2 additions & 0 deletions news/12536.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Remove the incorrect pip3.x console entrypoint from the pip wheel. This console
script continue to be generated by pip when it installs itself.
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[project]
dynamic = ["version", "scripts"]
dynamic = ["version"]

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

[project.scripts]
pip = "pip._internal.cli.main:main"
pip3 = "pip._internal.cli.main:main"

[project.urls]
Homepage = "https://pip.pypa.io/"
Documentation = "https://pip.pypa.io"
Expand Down
12 changes: 1 addition & 11 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
import sys

from setuptools import setup

setup(
entry_points={
"console_scripts": [
"pip=pip._internal.cli.main:main",
f"pip{sys.version_info[0]}=pip._internal.cli.main:main",
"pip{}.{}=pip._internal.cli.main:main".format(*sys.version_info[:2]),
],
},
)
setup()

0 comments on commit a643cc8

Please sign in to comment.