4922: force google-api-python-client install
authorTim Pierce <twp@curoverse.com>
Fri, 16 Jan 2015 19:51:28 +0000 (14:51 -0500)
committerTim Pierce <twp@curoverse.com>
Fri, 16 Jan 2015 19:51:28 +0000 (14:51 -0500)
Install google-api-python-client with 'pip install -I' to fix the case
where the Docker image already has an older version of
google-api-python-client installed.

sdk/cli/bin/crunch-job

index 3539a57a039246c35b1e92b1f8f11b51a3c0f28c..c719eee1c0fa31dc483aa168ce630c7cc75ceb31 100755 (executable)
@@ -1846,7 +1846,7 @@ if (@ARGV) {
   if ((!$venv_built) and (-d $python_src) and can_run("virtualenv")) {
     shell_or_die("virtualenv", "--quiet", "--system-site-packages",
                  "--python=python2.7", $venv_dir);
-    shell_or_die("$venv_dir/bin/pip", "--quiet", "install", $python_src);
+    shell_or_die("$venv_dir/bin/pip", "--quiet", "install", "-I", $python_src);
     $venv_built = 1;
     $Log->("Built Python SDK virtualenv");
   }