Skip to content

Commit

Permalink
Add hack to fix ply installation on opensuse
Browse files Browse the repository at this point in the history
The python3-ply package is indirectly a dependency of dhcp-client, which
is not exactly an optional package. Pip >=10 refuses to install ply from
global-requirements with this distro package is installed, so our only
option is to remove it manually.

Change-Id: I377fdd4a581eb4b6275584d92cafc0b783fe3b84
  • Loading branch information
cmurphy authored and dirkmueller committed Apr 15, 2019
1 parent 7fbc70e commit 10f4409
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tools/fixup_stuff.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 10f4409

Please sign in to comment.