Skip to main content

upgrade pip and setuptools versions used by venv

Project description

https://bitbucket.org/ruamel/upgrade_ensurepip/raw/default/_doc/_static/license.svg https://bitbucket.org/ruamel/upgrade_ensurepip/raw/default/_doc/_static/pypi.svg https://bitbucket.org/ruamel/oitnb/raw/default/_doc/_static/oitnb.svg https://bitbucket.org/ruamel/ryd/raw/default/_doc/_static/ryd.svg

Once you find that /your/installed/version/bin/python3 -m venv /some/venv followed by /some/venv/bin/pip install some_package gives a message that there is an update for pip, this package can update the wheel files used by ensurepip to the latest versions available on pypi.

You can do this upgrade by running:

/your/installed/version/bin/python3 -m upgrade_ensurepip

A heck against the sha256 is made before saving the newly downloaded wheels to disc. After finding and downloading newer versiosn, the /your/installed/version/lib/pythonX.Y/ensurepip/__init__.py file is updated as it hard-codes the versions of the wheels used. Before changing, a backup of the original is made if such a backup does not yet exists.

Old wheels are preserved, so only backup file __init__.py.org located under /your/installed/version/lib/pythonX.Y/ensurepip/ needs to be copied back in case you encounter problems.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

upgrade_ensurepip-0.1.2.tar.gz (14.6 kB view details)

Uploaded Source

File details

Details for the file upgrade_ensurepip-0.1.2.tar.gz.

File metadata

  • Download URL: upgrade_ensurepip-0.1.2.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.0

File hashes

Hashes for upgrade_ensurepip-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e852360066f317419c92c37d7ffcd523ce2eaa0bd8418ed74df12bfbfc881ad0
MD5 e5156c838c4804922880cc14db38b3b1
BLAKE2b-256 fc247481cfda47a6338fad91a8736a84c85d0be8ec2bb7d9100787a77668d594

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page