question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Provide get-pip.py versions for all python versions

See original GitHub issue

Each time pip drops the support for some version of python, users need to update their script from https://bootstrap.pypa.io/get-pip.py to https://bootstrap.pypa.io/X.Y/get-pip.py.

I’m wondering if we shouldn’t directly provide https://bootstrap.pypa.io/X.Y/get-pip.py for all existing (and recent) python versions.

That would currently mean to provide https://bootstrap.pypa.io/3.6/get-pip.py, https://bootstrap.pypa.io/3.7/get-pip.py, https://bootstrap.pypa.io/3.8/get-pip.py, https://bootstrap.pypa.io/3.9/get-pip.py & https://bootstrap.pypa.io/3.10/get-pip.py that would be copies of https://bootstrap.pypa.io/get-pip.py.

Users would then be able to directly use the get-pip.py script version matching their python version.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:5
  • Comments:12 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
uranusjrcommented, Mar 7, 2021

I think it’s a good idea to provide scripts for all versions, even if they are just duplicates to the main get-pip.py. Provision projects currently need to always refer to the versionless get-pip.py, which creates problems when the user provision with an old version of the tool after a Python version is dropped by pip, and the tool has no way to address this in a forward-compatible way.

If we provide scripts to all Python versions, tools can instead have something like

versioned_url = "https://bootstrap.pypa.io/{v.major}.{v.minor}/get-pip.py".format(v=sys.version_info)
script_path = _download_script(versioned_url)
subprocess.run([sys.executable, str(script_path)], check=True)

that’s guaranteed to work no matter in the future.

0reactions
pradyunsgcommented, Jan 6, 2022

PRs to do this would be welcome!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bootstrapping a specific version of pip - Packaging
When looking at get-pip.py , I don't see a version-specific URL, so I assume the checksum of this download changes after every new...
Read more >
Dealing with multiple Python versions and PIP? - Stack Overflow
To get a list of all installed Python versions available through the ... curl -O https://bootstrap.pypa.io/get-pip.py python27 get-pip.py.
Read more >
Installation - pip documentation v22.3.1
Download the script, from https://bootstrap.pypa.io/get-pip.py. ... The zip application can be run using any supported version of Python:.
Read more >
How to Install Pip on Windows - ActiveState
But if you're using an older version of Python, pip will need to ... To manually install pip on Windows, you will need...
Read more >
Pip - PyPI
The PyPA recommended tool for installing Python packages. ... We release updates regularly, with a new version every 3 months.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found