Fix pip-and-virtualenv to work with python3
We are explicitly calling python in this element which does not work on systems which only have python3. Change-Id: Ia730850a48e2478fd5461710a9d2619408725cd8
This commit is contained in:
parent
8565867734
commit
3e777cd8f4
@ -1,3 +1,4 @@
|
|||||||
|
dib-python
|
||||||
install-types
|
install-types
|
||||||
package-installs
|
package-installs
|
||||||
source-repositories
|
source-repositories
|
||||||
|
@ -19,7 +19,7 @@ if [[ $DISTRO_NAME =~ (centos|fedora) ]]; then
|
|||||||
${YUM:-yum} install -y python-virtualenv python-pip python-setuptools
|
${YUM:-yum} install -y python-virtualenv python-pip python-setuptools
|
||||||
|
|
||||||
# install pip; this overwrites packaged pip
|
# install pip; this overwrites packaged pip
|
||||||
python /tmp/get-pip.py
|
/usr/local/bin/dib-python /tmp/get-pip.py
|
||||||
|
|
||||||
# pip and setuptools are closely related; we want to ensure the
|
# pip and setuptools are closely related; we want to ensure the
|
||||||
# latest for sanity. Because distro packages don't include enough
|
# latest for sanity. Because distro packages don't include enough
|
||||||
@ -50,6 +50,6 @@ if [[ $DISTRO_NAME =~ (centos|fedora) ]]; then
|
|||||||
fi
|
fi
|
||||||
echo "exclude=python-virtualenv,python-pip,python-setuptools" >> ${conf}
|
echo "exclude=python-virtualenv,python-pip,python-setuptools" >> ${conf}
|
||||||
else
|
else
|
||||||
python /tmp/get-pip.py
|
/usr/local/bin/dib-python /tmp/get-pip.py
|
||||||
pip install virtualenv
|
pip install virtualenv
|
||||||
fi
|
fi
|
||||||
|
@ -2,7 +2,22 @@
|
|||||||
# early enough because pip depends on it.
|
# early enough because pip depends on it.
|
||||||
python-xml:
|
python-xml:
|
||||||
phase: pre-install.d
|
phase: pre-install.d
|
||||||
|
dib_python_version: 2
|
||||||
python-pip:
|
python-pip:
|
||||||
installtype: package
|
installtype: package
|
||||||
|
dib_python_version: 2
|
||||||
|
python3-pip:
|
||||||
|
installtype: package
|
||||||
|
dib_python_version: 3
|
||||||
python-virtualenv:
|
python-virtualenv:
|
||||||
installtype: package
|
installtype: package
|
||||||
|
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
|
||||||
|
@ -2,10 +2,17 @@
|
|||||||
"family": {
|
"family": {
|
||||||
"gentoo": {
|
"gentoo": {
|
||||||
"python-pip": "dev-python/pip",
|
"python-pip": "dev-python/pip",
|
||||||
"python-virtualenv": "dev-python/virtualenv"
|
"python-virtualenv": "dev-python/virtualenv",
|
||||||
|
"python3-dev": "dev-lang/python"
|
||||||
},
|
},
|
||||||
"suse": {
|
"suse": {
|
||||||
"python-xml": "python-xml"
|
"python-xml": "python-xml",
|
||||||
|
"python2-dev": "python2-devel",
|
||||||
|
"python3-dev": "python3-devel"
|
||||||
|
},
|
||||||
|
"redhat": {
|
||||||
|
"python2-dev": "python2-devel",
|
||||||
|
"python3-dev": "python3-devel"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"default": {
|
"default": {
|
||||||
|
Loading…
Reference in New Issue
Block a user