Skip to main content

Custom ensurepip to ensure up2date environments on Debian/Ubuntu

Project description

Ensurepip-Vanilla

ensurepip-vanilla is copy of the upstream ensurepip with an up2date pip & wheel. It is ment to be installed on Debian/Ubuntu instead of pythonXX-venv. This way, virtualenvs get a usable pip.

Installation

It is very important that this package is installed into the global python lib directory and not via site-packages. The reasoning is quite simple, as the venv module calls:

# We run ensurepip in isolated mode to avoid side effects from
# environment vars, the current directory and anything else
# intended for the global Python environment
cmd = [context.env_exe, '-Im', 'ensurepip', '--upgrade',
                                                '--default-pip']
subprocess.check_output(cmd, stderr=subprocess.STDOUT)

So to install, we need (as root & adjust for your python version):

pip install --target /usr/lib/python3.6 ensurepip-vanilla

After installation all your virtualenvs should have a resonably new pip.

Project details


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
ensurepip_vanilla-0.1.3-py2.py3-none-any.whl (1.9 MB) Copy SHA256 hash SHA256 Wheel py2.py3
ensurepip-vanilla-0.1.3.tar.gz (1.9 MB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page