Bug 770558 - Use MOZ_BUILD_ROOT instead of `pwd` for virtualenv python, to avoid creating a shell for each Python invocation under Pymake. r=khuey
authorSiddharth Agarwal <sid.bugzilla@gmail.com>
Fri, 06 Jul 2012 10:21:13 +0530
changeset 98494 9fad3e1bc979a3ed01da7a7b01dc2ba8575b49b5
parent 98493 27d4a1f95ac5af30bedc2e90b13863e7bd60ff87
child 98495 c332505ca51f0af8c2b95525e620cf22d94911f3
push id23059
push usereakhgari@mozilla.com
push dateFri, 06 Jul 2012 14:45:18 +0000
treeherdermozilla-central@a8f682801a6d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskhuey
bugs770558
milestone16.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 770558 - Use MOZ_BUILD_ROOT instead of `pwd` for virtualenv python, to avoid creating a shell for each Python invocation under Pymake. r=khuey
configure.in
--- a/configure.in
+++ b/configure.in
@@ -8854,20 +8854,20 @@ mv confdefs.h.save confdefs.h
 
 dnl Create a virtualenv where we can install local Python packages
 AC_MSG_RESULT([Creating Python virtualenv])
 rm -rf _virtualenv
 mkdir -p _virtualenv
 MACOSX_DEPLOYMENT_TARGET= PYTHONDONTWRITEBYTECODE= $PYTHON $_topsrcdir/other-licenses/virtualenv/virtualenv.py --system-site-packages ./_virtualenv
 case "$host_os" in
 mingw*)
-    PYTHON=`pwd`/_virtualenv/Scripts/python.exe
+    PYTHON=$MOZ_BUILD_ROOT/_virtualenv/Scripts/python.exe
     ;;
 *)
-    PYTHON=`pwd`/_virtualenv/bin/python
+    PYTHON=$MOZ_BUILD_ROOT/_virtualenv/bin/python
     ;;
 esac
 
 AC_SUBST(PYTHON)
 
 dnl Load the list of Makefiles to generate.
 dnl   To add new Makefiles, edit allmakefiles.sh.
 dnl   allmakefiles.sh sets the variable, MAKEFILES.