pypa / get-pip

Helper scripts to install pip, in a Python installation that doesn't have it.
https://bootstrap.pypa.io/pip/
MIT License
755 stars 297 forks source link

Don't refer to non-existent get-pip versions #149

Closed solarkraft closed 2 years ago

solarkraft commented 2 years ago

I've lately been messing around with Python 3.1, trying to get PIP. The installation script errors out with

ERROR: This script does not work on Python 3.1 The minimum supported Python version is 3.7. Please use https://bootstrap.pypa.io/pip/3.1/get-pip.py instead.

So naturally I tried to find get-pip for Python 3.1, considering that I've just been told that it exists.

Thankfully this lie was eventually cleared up:

We've never had a get-pip.py for Python 3.1.

It turns out that this code only takes the current version of Python you're running and generates a get-pip link for it.

if this_python < min_version:
    message_parts = [
        "This script does not work on Python {{}}.{{}}".format(*this_python),
        "The minimum supported Python version is {{}}.{{}}.".format(*min_version),
        "Please use https://bootstrap.pypa.io/pip/{{}}.{{}}/get-pip.py instead.".format(*this_python),
    ]
    print("ERROR: " + " ".join(message_parts))

It would probably better be changed to avoid unnecessarily confusing users by pointing at get-pip versions that don't exist.

pradyunsg commented 2 years ago

Uhm... Why are you trying to use Python 3.1?

pradyunsg commented 2 years ago

I don't think it's worth trying to have a better error message on EoL Python versions.

solarkraft commented 2 years ago

Uhm... Why are you trying to use Python 3.1?

I'm trying to get a usable software environment on an Amazon Kindle Touch. Due to its old 2.6.31 kernel it only supports Debian versions up to Squeeze, which ships Python 3.1 and no python3-pip.

That's arguably a silly thing to do, but I'm not sure that should matter. Had you not explained that get-pip for 3.1 never existed, I may have searched for much longer. How many others may do the same?

pradyunsg commented 2 years ago

Python 3.1 typically has 0 downloads from PyPI on a given date, occasionally bumping up to something higher like 7. It bumped up to 185 yesterday, which I imagine was you. :)

https://pypistats.org/packages/__all__

I don't think there's too many others.

pradyunsg commented 2 years ago

Closing this as a wontfix, because I'm not interested in an extended discussion here. If some other pip maintainer thinks this is worth their time, please feel free to reopen.

pradyunsg commented 2 years ago
Screenshot 2022-02-18 at 19 59 53

Posting a screenshot, because the stats are only preserved on that site for ~120 days.