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 304591 278b332af0cdbe52578a2ea6498380f3e806e2be
parent 304590 3c8609dde0ff095b52083f4fd30097bd6d4a3172
child 304603 4e2084c39d2be1824042666e2fd05d2b26bab543
child 304653 6957ce1369993676626fcb58236294ccff4ce36d
push id79366
push usercbook@mozilla.com
push dateTue, 12 Jul 2016 09:06:30 +0000
treeherdermozilla-inbound@da8948e3c26d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs1285860
milestone50.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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'))