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 <jbapple@cloudera.com>
Tested-by: Internal Jenkins
This commit is contained in:
Jim Apple
2016-06-21 10:03:39 -07:00
committed by Tim Armstrong
parent 06abb57877
commit 140220323d

View File

@@ -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)