cbuildbot_launch: Hack to fix crcmod on builders.

This is a short term hack to fix crcmod on the ChromeOS builders to
fix release builds.

BUG=chromium:763438
TEST=Local build + unittests.

Change-Id: I412f0367a2aab4067196351f260fc7417af82401
Reviewed-on: https://chromium-review.googlesource.com/658041
Tested-by: Don Garrett <dgarrett@chromium.org>
Trybot-Ready: Don Garrett <dgarrett@chromium.org>
Reviewed-by: Allen Li <ayatane@chromium.org>
diff --git a/scripts/cbuildbot_launch.py b/scripts/cbuildbot_launch.py
index 80c0e50..3c65f84 100644
--- a/scripts/cbuildbot_launch.py
+++ b/scripts/cbuildbot_launch.py
@@ -267,6 +267,12 @@
   # This variable is required for repo sync's to work in all cases.
   os.environ['LANG'] = 'en_US.UTF-8'
 
+  # TODO(dgarrett): Super ugly, super temporary hack to fix release builds.
+  logging.warn('FORCING LOCAL INSTALL OF CRCMOD.')
+  cmd = ['pip', 'install', '--ignore-installed', 'crcmod']
+  result = cros_build_lib.SudoRunCommand(cmd, error_code_ok=True)
+  logging.warn('FORCED LOCAL INSTALL OF CRCMOD RETURNED: %d', result.returncode)
+
 
 def _main(argv):
   """main method of script.