Bug 1278196 - Explicitly install functools32 w/ jsonschema r?gps draft
authorWilliam Lachance <wlachance@mozilla.com>
Mon, 18 Jul 2016 13:12:18 -0400
changeset 389570 0cb260d47e307132262ad052c9a8395200140688
parent 389110 69a9474a32061e0afc22ad93f0683934cff0c531
child 525797 fac05f1ace50e5c3b946b534191f723446424009
push id23455
push userwlachance@mozilla.com
push dateTue, 19 Jul 2016 17:20:43 +0000
reviewersgps
bugs1278196
milestone50.0a1
Bug 1278196 - Explicitly install functools32 w/ jsonschema r?gps MozReview-Commit-ID: EDIayiXQwJk
testing/mozharness/mozharness/base/python.py
--- a/testing/mozharness/mozharness/base/python.py
+++ b/testing/mozharness/mozharness/base/python.py
@@ -461,16 +461,22 @@ class ResourceMonitoringMixin(object):
         super(ResourceMonitoringMixin, self).__init__(*args, **kwargs)
 
         self.register_virtualenv_module('psutil>=3.1.1', method='pip',
                                         optional=True)
         self.register_virtualenv_module('mozsystemmonitor==0.3',
                                         method='pip', optional=True)
         self.register_virtualenv_module('jsonschema==2.5.1',
                                         method='pip')
+        # explicitly install functools32, because some slaves aren't using
+        # a version of pip recent enough to install it automatically with
+        # jsonschema (which depends on it)
+        # https://github.com/Julian/jsonschema/issues/233
+        self.register_virtualenv_module('functools32==3.2.3-2',
+                                        method='pip')
         self._resource_monitor = None
 
         # 2-tuple of (name, options) to assign Perfherder resource monitor
         # metrics to. This needs to be assigned by a script in order for
         # Perfherder metrics to be reported.
         self.resource_monitor_perfherder_id = None
 
     @PostScriptAction('create-virtualenv')