From 77568c6ee3839c506c05f8b87b038281fa494afc Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Tue, 15 Mar 2016 11:05:05 +1100 Subject: [PATCH] Really reinstall requests on Fedora Clear out the meta-data provided by the rpm package, so pip does a reinstall. Fix for If3f244ed4f62da25dc42813b4bda2f374f002517 Change-Id: Ic3bd801c0f57a2453d3563aaa4cf778aa0a9f9bf --- install_puppet.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install_puppet.sh b/install_puppet.sh index f83d1c4977..a50b882f96 100755 --- a/install_puppet.sh +++ b/install_puppet.sh @@ -110,12 +110,13 @@ function setup_puppet_fedora { # and then something like devstack does a "yum install # python-requests" which does a very bad job at overwriting the # pip-installed version (symlinks and existing directories don't - # mix). The solution is to pre-install the python-requests + # mix). A solution is to pre-install the python-requests # package; clear it out and re-install from pip. This way, the # package is installed for dependencies, and we have a pip-managed # requests with correctly vendored sub-packages. sudo ${YUM} install -y python-requests sudo rm -rf /usr/lib/python2.7/site-packages/requests/* + sudo rm -rf /usr/lib/python2.7/site-packages/requests-*.{egg,dist}-info sudo pip install requests }