2017-06-28 21:32:38 +00:00
|
|
|
# The python-xml and python3 openSUSE packages contain core python modules
|
|
|
|
# such as the XML one but the python devel packages do not pull them. As
|
|
|
|
# such we need to install them during the pre-install.d phase so they are
|
|
|
|
# available as early as possible. See
|
|
|
|
# - https://bugzilla.suse.com/show_bug.cgi?id=1046990
|
2019-05-11 21:04:34 +00:00
|
|
|
# - https://review.opendev.org/#/c/478648/
|
|
|
|
# - https://review.opendev.org/#/c/478650/
|
2017-06-28 21:32:38 +00:00
|
|
|
# for discussions about this issue.
|
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-10-20 17:53:30 +00:00
|
|
|
python-xml:
|
|
|
|
phase: pre-install.d
|
2016-12-06 21:51:13 +00:00
|
|
|
dib_python_version: 2
|
2017-06-28 21:32:38 +00:00
|
|
|
python3:
|
|
|
|
phase: pre-install.d
|
|
|
|
installtype: package
|
|
|
|
dib_python_version: 3
|
2015-10-27 01:49:05 +00:00
|
|
|
python-pip:
|
|
|
|
installtype: package
|
2016-12-06 21:51:13 +00:00
|
|
|
dib_python_version: 2
|
|
|
|
python3-pip:
|
|
|
|
installtype: package
|
|
|
|
dib_python_version: 3
|
2015-10-27 01:49:05 +00:00
|
|
|
python-virtualenv:
|
|
|
|
installtype: package
|
2016-12-06 21:51:13 +00:00
|
|
|
dib_python_version: 2
|
|
|
|
python3-virtualenv:
|
|
|
|
installtype: package
|
|
|
|
dib_python_version: 3
|
|
|
|
python-dev:
|
|
|
|
installtype: source
|
|
|
|
dib_python_version: 2
|
|
|
|
python3-dev:
|
|
|
|
installtype: source
|
|
|
|
dib_python_version: 3
|
2019-10-25 04:41:54 +00:00
|
|
|
# Separate package on debubuntu
|
|
|
|
python3-venv:
|
|
|
|
dib_python_version: 3
|