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 304539 278b332af0cdbe52578a2ea6498380f3e806e2be
parent 304538 3c8609dde0ff095b52083f4fd30097bd6d4a3172
child 304540 4e2084c39d2be1824042666e2fd05d2b26bab543
child 304607 6957ce1369993676626fcb58236294ccff4ce36d
push id19953
push usercbook@mozilla.com
push dateTue, 12 Jul 2016 09:07:58 +0000
treeherderfx-team@efc08ad3e8af [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'))