diskimage-builder/elements/pip-and-virtualenv
Ian Wienand a85ce75d6b Pre-install pip/virtualenv packages
If we're installing pip/virtualenv from source, we need to make sure
we pre-install the packaged versions before the upstream
versions. Otherwise, CI jobs later on that depend on packaged versions
of pip/virtualenv can bring them in and overwrite the upstream
versions we have installed, which leads to a heck of a mess and
usually very confusing failures.

I have also moved in a small hack from system-config:install_puppet.sh
that we found was necessary when using pip versions from upstream.

Note this is not as much of an issue on Debian/Ubuntu, as they keep
their pip packages in a separate place to the system packages, so you
don't have these overwite conflicts as much.

Change-Id: Ib40708c07b939b84661c44df88a5a308fd0c7216
2016-06-17 09:20:57 +10:00
..
install.d/pip-and-virtualenv-source-install Pre-install pip/virtualenv packages 2016-06-17 09:20:57 +10:00
element-deps Add pip-and-virtualenv element 2016-01-06 18:39:19 +00:00
package-installs.yaml Add pip-and-virtualenv element 2016-01-06 18:39:19 +00:00
pkg-map add pkg-map to pip-and-virtualenv element 2016-03-21 20:12:37 -05:00
README.rst Add pip-and-virtualenv element 2016-01-06 18:39:19 +00:00
source-repository-pip-and-virtualenv add pkg-map to pip-and-virtualenv element 2016-03-21 20:12:37 -05:00

==================
pip-and-virtualenv
==================

This element installs pip and virtualenv in the image. If the package
installtype is used then these programs are installed from distribution
packages. If the source installtype is used these programs are installed
from get-pip.py and pip (respectively).

To install pip and virtualenv from package:

  export DIB_INSTALLTYPE_pip_and_virtualenv=package