Bug 1285860 - Add python/mozbuild at beginning of sys.path; r=glandium
authorGregory Szorc <gps@mozilla.com>
Mon, 11 Jul 2016 10:42:11 -0700
changeset 329591 278b332af0cdbe52578a2ea6498380f3e806e2be
parent 329590 3c8609dde0ff095b52083f4fd30097bd6d4a3172
child 329603 4e2084c39d2be1824042666e2fd05d2b26bab543
child 329646 6957ce1369993676626fcb58236294ccff4ce36d
push id9858
push userjlund@mozilla.com
push dateMon, 01 Aug 2016 14:37:10 +0000
treeherdermozilla-aurora@203106ef6cb6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs1285860
milestone50.0a1
Bug 1285860 - Add python/mozbuild at beginning of sys.path; r=glandium We want local source directory paths to take precedence over system paths so system installed packages don't get used. MozReview-Commit-ID: FIZ0RxqZj78
configure.py
--- a/configure.py
+++ b/configure.py
@@ -7,17 +7,17 @@ from __future__ import print_function, u
 import codecs
 import json
 import os
 import subprocess
 import sys
 
 
 base_dir = os.path.abspath(os.path.dirname(__file__))
-sys.path.append(os.path.join(base_dir, 'python', 'mozbuild'))
+sys.path.insert(0, os.path.join(base_dir, 'python', 'mozbuild'))
 from mozbuild.configure import ConfigureSandbox
 
 
 def main(argv):
     config = {}
     sandbox = ConfigureSandbox(config, os.environ, argv)
     sandbox.run(os.path.join(os.path.dirname(__file__), 'moz.configure'))