Add pip-and-virtualenv element
This element allows installation of pip and virtualenv from either distro packages or git. Change-Id: Id294f0936c8fef8a3b27a415bfcc93b3f327e104 Depends-On: I731cc8a0f5bfeda8f17a78c33b9f44062323a361
This commit is contained in:
parent
2b28993fb8
commit
db3ee03672
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