Browse code

Install prettytable>=0.7 to satisfy pip 6/PEP 440

Also use sudo -H with pip so that it doesn't create a ~stack/.cache
other things can't write to as the stack user later.

Change-Id: I2134c7d8f58f8b83f33150c9ed86d87f8ccba2f3

Jeremy Stanley authored on 2014/12/23 02:17:51
Showing 2 changed files
... ...
@@ -1578,7 +1578,7 @@ function pip_install {
1578 1578
         local sudo_pip="env"
1579 1579
     else
1580 1580
         local cmd_pip=$(get_pip_command)
1581
-        local sudo_pip="sudo"
1581
+        local sudo_pip="sudo -H"
1582 1582
     fi
1583 1583
 
1584 1584
     $xtrace
... ...
@@ -85,7 +85,7 @@ function get_package_path {
85 85
 
86 86
 # Fix prettytable 0.7.2 permissions
87 87
 # Don't specify --upgrade so we use the existing package if present
88
-pip_install 'prettytable>0.7'
88
+pip_install 'prettytable>=0.7'
89 89
 PACKAGE_DIR=$(get_package_path prettytable)
90 90
 # Only fix version 0.7.2
91 91
 dir=$(echo $PACKAGE_DIR/prettytable-0.7.2*)