diff --git a/tools/fixup_stuff.sh b/tools/fixup_stuff.sh index 1ff7bfa516..748223902c 100755 --- a/tools/fixup_stuff.sh +++ b/tools/fixup_stuff.sh @@ -228,6 +228,14 @@ function fixup_suse { sudo systemctl disable apparmor sudo /usr/sbin/aa-teardown fi + + # Since pip10, pip will refuse to uninstall files from packages + # that were created with distutils (rather than more modern + # setuptools). This is because it technically doesn't have a + # manifest of what to remove. However, in most cases, simply + # overwriting works. So this hacks around those packages that + # have been dragged in by some other system dependency + sudo rm -rf /usr/lib/python3.6/site-packages/ply-*.egg-info } # The version of pip(1.5.4) supported by python-virtualenv(1.11.4) has