Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Bug 766706 - mozharness virtualenv install method should be able to s…

…pecify --find-links;r=aki
  • Loading branch information...
commit 1e323fbd2a119dfa721477f5cd6e7d83c1479ee3 1 parent 5c05732
@k0s k0s authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 mozharness/base/python.py
View
11 mozharness/base/python.py
@@ -32,6 +32,12 @@
"dest": "pypi_url",
"help": "Base URL of Python Package Index (default http://pypi.python.org/simple/)"
}
+],
+[["--find-links"],
+{"action": "extend",
+ "dest": "find_links",
+ "help": "URL to look for packages at"
+}
]]
class VirtualenvMixin(object):
@@ -163,6 +169,11 @@ def install_module(self, module, module_url=None, install_method=None):
command = [easy_install]
else:
self.fatal("install_module() doesn't understand an install_method of %s!" % install_method)
+
+ # Add --find-links pages to look at
+ for link in c.get('find_links', []):
+ command.extend(["--find-links", link])
+
# Allow for errors while building modules, but require a
# return status of 0.
if self.run_command(command + [module_url],
Please sign in to comment.
Something went wrong with that request. Please try again.