diskimage-builder/diskimage_builder/elements
Ian Wienand b423292cd0 Remove installed packages before pip install
The release of pip10 has shown up a few issues here

Firstly, pip10 now refuses to overwrite distutils installed packages,
which includes "python-virtualenv" on centos.  History has shown us
that we want the packages installed and overwritten, to avoid the
packages coming back and messing things up.

Pre-install all the packages, then list the files in the packages with
"rpm" directly and remove them.  This way pip is happy to install.

We need to take better account of the package names for this; on
Fedora things have switch to "python2-virtualenv" instead of
"python-virtualenv" and we can't use an alias to list the package
contents.

This also highlighted that python2-pip is in EPEL for centos, so
enable that when we install it.  Make the epel element a no-op for non
centos/rhe distros.

There is a related change in recent fedora that python3 now installs
binaries into /usr/local/bin.  There are commented swizzles in here to
ensure we retain the status quo of "pip" and "virtualenv" both being
python2 based, with the python3 versions being called explicitly
"pip3" and "virtualenv3" respectively.

Change-Id: I2ffdd9f615ae6b00428c17249e4f216774991b99
2018-04-17 16:09:04 +10:00
..
apt-conf Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
apt-preferences Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
apt-sources Use local mirror for ubuntu-minimal jobs 2017-06-21 12:01:31 +10:00
baremetal Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
base Drop support for Ubuntu precise 2017-05-31 14:36:30 +02:00
block-device-efi Choose appropriate bootloader for block-device 2018-02-23 10:04:44 +11:00
block-device-gpt Choose appropriate bootloader for block-device 2018-02-23 10:04:44 +11:00
block-device-mbr Choose appropriate bootloader for block-device 2018-02-23 10:04:44 +11:00
bootloader arm64: use HWE kernel and fix console 2018-02-23 10:04:48 +11:00
cache-url Avoid hanging endlessly on unreachable cache urls 2017-06-28 22:14:55 +02:00
centos7 Remove DIB_[DISTRO]_DISTRIBUTION_MIRROR 2017-07-17 14:47:31 +10:00
centos-minimal Start at using CI mirrors for fedora/centos 2017-06-21 12:02:27 +10:00
cleanup-kernel-initrd Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
cloud-init Merge branch 'master' into merge-branch 2017-02-09 13:35:53 +11:00
cloud-init-datasources Drop support for Ubuntu precise 2017-05-31 14:36:30 +02:00
cloud-init-disable-resizefs Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
cloud-init-nocloud Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
debian Fix element-provides in debian element 2018-03-26 10:58:04 -07:00
debian-minimal Add debian minimal requirement for arm64 2017-10-16 13:39:50 +08:00
debian-systemd Install systemd earlier for Stretch 2017-06-19 13:27:33 +10:00
debian-upstart Install systemd earlier for Stretch 2017-06-19 13:27:33 +10:00
debootstrap debootstrap: Call update-initramfs explicitly 2018-03-29 04:14:52 +00:00
deploy-baremetal Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
deploy-kexec Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
deploy-targetcli Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
deploy-tgtadm Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
devuser install sudo in the devuser element 2018-03-22 00:16:09 -05:00
dhcp-all-interfaces Set the dhclient timeout to match DIB_DHCP_TIMEOUT 2018-04-05 14:29:22 +01:00
dib-init-system Fix dib-init-system for Debian Jessie and Debian Stretch 2017-03-11 14:04:13 +00:00
dib-python Merge "Clean up dib-python symlink" 2018-03-29 05:33:51 +00:00
dib-run-parts Trivial fix typos 2017-05-31 11:17:05 +07:00
disable-selinux/post-install.d Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
dkms Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
docker Run dib-run-parts out of /tmp 2017-04-05 13:11:22 +10:00
dpkg fix readme.rst to reflect correct environment variable 2017-07-06 22:54:08 -04:00
dracut-network Remove dracut-network element 2017-05-31 08:36:56 +10:00
dracut-ramdisk Merge "Remove use of 'which'." 2017-06-11 09:30:34 +00:00
dracut-regenerate Merge "Add missing package dependency for yaml" 2017-09-15 13:52:35 +00:00
dynamic-login Release 1.25.2 2017-02-02 11:20:00 +11:00
element-manifest Release 1.24.0 2017-01-31 14:14:19 +11:00
enable-serial-console Release 1.25.2 2017-02-02 11:20:00 +11:00
epel Remove installed packages before pip install 2018-04-17 16:09:04 +10:00
fedora secondary architectures use different url 2018-03-01 19:38:14 -06:00
fedora-minimal Merge "Update Fedora defaults to 27" 2018-03-25 23:41:45 +00:00
gentoo Change the GENTOO_PORTAGE_CLEANUP variable default 2018-03-26 23:26:49 -05:00
growroot Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
grub2 Fix grub2 dependency on arm64 2017-10-16 13:39:34 +08:00
hpdsa Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
hwburnin Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
hwdiscovery Remove use of 'which'. 2017-05-19 12:43:36 -07:00
ilo Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
install-bin Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
install-static Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
install-types Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
ironic-agent Merge "Create rescue user on ironic agent" 2018-02-05 22:43:00 +00:00
iso Fix for rhel7 iso image creation. 2018-02-28 06:31:34 -06:00
local-config Merge remote-tracking branch 'origin/master' into merge-branch 2016-11-29 07:43:46 +11:00
manifests Set manifest permissions in the image 2017-05-24 15:20:55 +10:00
mellanox Merge remote-tracking branch 'origin/master' into merge-branch 2016-11-29 07:43:46 +11:00
modprobe-blacklist Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
no-final-image Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
oat-client Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
openssh-server Update Gentoo element for element changes 2017-10-08 12:02:46 -05:00
openstack-ci-mirrors elements: openstack-ci-mirrors: Use openSUSE mirrors for gating jobs 2017-07-17 10:54:03 +01:00
opensuse Clear /etc/machine-id to avoid duplicate machine-ids 2017-08-06 13:56:58 -04:00
opensuse-minimal Clear /etc/machine-id to avoid duplicate machine-ids 2017-08-06 13:56:58 -04:00
package-installs Fix package-installs-v2 output 2017-04-07 13:48:53 +10:00
pip-and-virtualenv Remove installed packages before pip install 2018-04-17 16:09:04 +10:00
pip-cache Release 1.25.2 2017-02-02 11:20:00 +11:00
pkg-map Trivial fix typos 2017-05-31 11:17:05 +07:00
posix Merge remote-tracking branch 'origin/master' into merge-branch 2016-11-29 07:43:46 +11:00
proliant-tools proliant-tools: add net-tools package to support hpsum utility 2018-03-09 02:29:23 -06:00
pypi Release 1.27.0 2017-02-03 11:49:45 +11:00
python-brickclient Merge branch 'master' into merge-branch 2017-02-09 13:35:53 +11:00
ramdisk Remove use of 'which'. 2017-05-19 12:43:36 -07:00
ramdisk-base Remove use of 'which'. 2017-05-19 12:43:36 -07:00
rax-nova-agent Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
redhat-common Merge "Clear /etc/machine-id to avoid duplicate machine-ids" 2017-11-30 01:56:26 +00:00
rhel7 Support for Cloud Images on ppc64le for rhel7 and centos7 2017-06-29 15:44:26 +10:00
rhel-common Fix for passing user defined value for satellite cert for rhel-common. 2018-02-28 02:43:39 -06:00
rpm-distro Use SELinuxfs to check selinux status 2017-07-26 18:57:25 +02:00
runtime-ssh-host-keys Release 1.21.1 2017-02-02 20:36:23 +11:00
select-boot-kernel-initrd Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
selinux-permissive Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
simple-init Have simple-init enable network.service 2017-03-28 19:28:51 +11:00
source-repositories Trivial fix typos 2017-05-31 11:17:05 +07:00
stable-interface-names Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
svc-map Adding mapping for SUSE package 2017-12-20 17:51:33 +01:00
sysctl Release 1.25.2 2017-02-02 11:20:00 +11:00
sysprep Clear /etc/machine-id to avoid duplicate machine-ids 2017-08-06 13:56:58 -04:00
uboot Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
ubuntu Add block-device defaults 2018-02-23 10:04:40 +11:00
ubuntu-common Clear /etc/machine-id to avoid duplicate machine-ids 2017-08-06 13:56:58 -04:00
ubuntu-core Move to a common lock-file directory 2017-10-26 16:27:59 +11:00
ubuntu-minimal arm64: use HWE kernel and fix console 2018-02-23 10:04:48 +11:00
ubuntu-signed Use sphinx warning-is-error 2017-03-14 14:49:49 +11:00
vm Add block-device defaults 2018-02-23 10:04:40 +11:00
yum Merge branch 'master' into merge-branch 2017-02-09 13:35:53 +11:00
yum-minimal Merge "Fix /dev/pts mount options handling" 2017-12-01 02:01:46 +00:00
zipl Add zipl element as s390x architecture bootloader 2017-11-07 17:19:27 +01:00
zypper zypper: fix package removal 2017-12-05 22:59:20 +00:00
zypper-minimal Merge "zypper-minimal: Set default locale env to C.UTF-8" 2018-03-29 05:33:52 +00:00