Limit Pip version
Starting with version 10, Pip does not allow updating packages
that were installed with the distro's package manager.
@@ -653,16 +653,17 @@ prepdashboard()
upgradepip()
{
# Versions older than Pip 7 did not correctly parse install commands for
- # local packages with optional dependencies.
+ # local packages with optional dependencies. Versions greater than Pip 9
+ # do not allow replacing packages installed by the distro.
case "$DIST" in
wheezy|trusty)
- pipwrapper pip
+ pipwrapper 'pip<10'
# Account for the change in the path to the pip binary.
hash -r
;;
jessie)
# The system's pip does not allow updating itself.
- easy_install --upgrade pip
+ easy_install --upgrade 'pip<10'
hash -r
;;
esac
