Merge "Add pip-and-virtualenv element"
This commit is contained in:
commit
023cfc3541
12
elements/pip-and-virtualenv/README.rst
Normal file
12
elements/pip-and-virtualenv/README.rst
Normal file
@ -0,0 +1,12 @@
|
||||
==================
|
||||
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
|
2
elements/pip-and-virtualenv/element-deps
Normal file
2
elements/pip-and-virtualenv/element-deps
Normal file
@ -0,0 +1,2 @@
|
||||
package-installs
|
||||
source-repositories
|
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
|
||||
set -x
|
||||
fi
|
||||
set -eu
|
||||
set -o pipefail
|
||||
|
||||
python /tmp/get-pip.py
|
||||
pip install virtualenv
|
4
elements/pip-and-virtualenv/package-installs.yaml
Normal file
4
elements/pip-and-virtualenv/package-installs.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
python-pip:
|
||||
installtype: package
|
||||
python-virtualenv:
|
||||
installtype: package
|
@ -0,0 +1 @@
|
||||
get-pip-py file /tmp/get-pip.py https://bootstrap.pypa.io/get-pip.py
|
Loading…
Reference in New Issue
Block a user