diskimage-builder/elements/dib-python
Markos Chandras 339ecee2b2 elements: dib-python: Add python2 as the default version for openSUSE
Commit 6278371eaa13("Make dib-python use the default python for distro")
added default python version for various distros but it missed openSUSE
which leads to build failures since the openSUSE elements are pulling
python2 packages. Add openSUSE to the list of python2 distributions
until python3 support for the openSUSE elements is in place.

Change-Id: I95f1fa849a22607c430387a2a915f9d19c9c209f
2016-12-14 09:38:45 +00:00
..
environment.d elements: dib-python: Add python2 as the default version for openSUSE 2016-12-14 09:38:45 +00:00
pre-install.d Make dib-python use the default python for distro 2016-12-09 09:25:37 -08:00
README.rst Make dib-python use the default python for distro 2016-12-09 09:25:37 -08:00

==========
dib-python
==========

Adds a symlink to /usr/local/bin/dib-python which points at either a python2
or python3 executable. This is useful for creating #! lines for scripts that
are compatible with both python2 and python3.

This does not install a python if one does not exist, and instead fails.

This also exports a variable DIB_PYTHON_VERSION which will either be '2' or
'3' depending on the python version which dib-python points to.