Repository: incubator-impala
Updated Branches:
  refs/heads/master 06abb5787 -> 140220323


IMPALA-3767: bootstrap_virtualenv fails to find cython distribution

This patch avoids trying to download a Cython binary 0.23.4, which pip
has trouble finding.

Change-Id: Ic6733ccb71bcf99196075faa2fb6cf2a1d6276ce
Reviewed-on: http://gerrit.cloudera.org:8080/3427
Reviewed-by: Jim Apple <[email protected]>
Tested-by: Internal Jenkins


Project: http://git-wip-us.apache.org/repos/asf/incubator-impala/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-impala/commit/14022032
Tree: http://git-wip-us.apache.org/repos/asf/incubator-impala/tree/14022032
Diff: http://git-wip-us.apache.org/repos/asf/incubator-impala/diff/14022032

Branch: refs/heads/master
Commit: 140220323d4d0d8767edeff7ee3e8426a0dd55e6
Parents: 06abb57
Author: Jim Apple <[email protected]>
Authored: Tue Jun 21 10:03:39 2016 -0700
Committer: Tim Armstrong <[email protected]>
Committed: Tue Jun 21 19:38:19 2016 -0700

----------------------------------------------------------------------
 infra/python/bootstrap_virtualenv.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/14022032/infra/python/bootstrap_virtualenv.py
----------------------------------------------------------------------
diff --git a/infra/python/bootstrap_virtualenv.py 
b/infra/python/bootstrap_virtualenv.py
index b0ebb83..a9c6264 100644
--- a/infra/python/bootstrap_virtualenv.py
+++ b/infra/python/bootstrap_virtualenv.py
@@ -82,8 +82,11 @@ def exec_pip_install(args, **popen_kwargs):
   # Don't call the virtualenv pip directly, it uses a hashbang to to call the 
python
   # virtualenv using an absolute path. If the path to the virtualenv is very 
long, the
   # hashbang won't work.
+  #
+  # Passes --no-binary for IMPALA-3767: without this, Cython (and
+  # several other packages) fail download.
   exec_cmd([os.path.join(ENV_DIR, "bin", "python"), os.path.join(ENV_DIR, 
"bin", "pip"),
-    "install", "--no-index", "--find-links",
+    "install", "--no-binary", "--no-index", "--find-links",
     "file://%s" % urllib.pathname2url(os.path.abspath(DEPS_DIR))] + args, 
**popen_kwargs)
 
 

Reply via email to