Skip to content

Commit e18325c

Browse files
committed
Fix pip uncap fallout for nova and barbican
Need to make PyYAML overridable on Ubuntu, it is a dependency for e.g. cloud-init, so we cannot remove it. Depends-On: https://review.opendev.org/703792 Change-Id: I4423dfb2c30299903b52a2bb06d846dd487f5b8b
1 parent 2e45f2c commit e18325c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tools/fixup_stuff.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,14 @@ function fixup_ubuntu {
8282

8383
# Enable universe
8484
sudo add-apt-repository -y universe
85+
86+
# Since pip10, pip will refuse to uninstall files from packages
87+
# that were created with distutils (rather than more modern
88+
# setuptools). This is because it technically doesn't have a
89+
# manifest of what to remove. However, in most cases, simply
90+
# overwriting works. So this hacks around those packages that
91+
# have been dragged in by some other system dependency
92+
sudo rm -f /usr/lib/python3/dist-packages/PyYAML-*.egg-info
8593
}
8694

8795
# Python Packages

0 commit comments

Comments
 (0)