diskimage-builder/elements/pip-and-virtualenv
Markos Chandras d84df60345 elements: pip-and-virtualenv: Add python-xml dependency
SUSE packages the 'xml' python module as a separate package so make
sure it's pulled in before we attempt to install the pip module
since the latter depends on it. Fixes the following problem when
building with the opensuse-minimal and pip-and-virtualenv elements:

Traceback (most recent call last):
  File "/tmp/get-pip.py", line 19177, in <module>
    main()
  File "/tmp/get-pip.py", line 194, in main
    bootstrap(tmpdir=tmpdir)
  File "/tmp/get-pip.py", line 82, in bootstrap
    import pip
  File "/tmp/tmpOiESjX/pip.zip/pip/__init__.py", line 16, in <module>
  File "/tmp/tmpOiESjX/pip.zip/pip/vcs/subversion.py", line 9, in <module>
  File "/tmp/tmpOiESjX/pip.zip/pip/index.py", line 32, in <module>
  File "/tmp/tmpOiESjX/pip.zip/pip/_vendor/html5lib/__init__.py", line 16, in <module>
  File "/tmp/tmpOiESjX/pip.zip/pip/_vendor/html5lib/html5parser.py", line 6, in <module>
  File "/tmp/tmpOiESjX/pip.zip/pip/_vendor/html5lib/inputstream.py", line 10, in <module>
  File "/tmp/tmpOiESjX/pip.zip/pip/_vendor/html5lib/utils.py", line 10, in <module>
ImportError: No module named xml.etree.ElementTree

Change-Id: I1bec12dfcde05fb07f41bcec994148c3eacbb287
2016-11-21 15:54:18 +00:00
..
install.d/pip-and-virtualenv-source-install Revert "Revert "Pre-install pip/virtualenv packages"" 2016-07-14 13:54:41 +10:00
README.rst Add pip-and-virtualenv element 2016-01-06 18:39:19 +00:00
element-deps Add pip-and-virtualenv element 2016-01-06 18:39:19 +00:00
package-installs.yaml elements: pip-and-virtualenv: Add python-xml dependency 2016-11-21 15:54:18 +00:00
pkg-map elements: pip-and-virtualenv: Add python-xml dependency 2016-11-21 15:54:18 +00:00
source-repository-pip-and-virtualenv add pkg-map to pip-and-virtualenv element 2016-03-21 20:12:37 -05:00

README.rst

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