[pypy-commit] pypy default: For now, always use "python" to run trackgcroot.py. Running pypy is slower,

arigo noreply at buildbot.pypy.org
Sat Oct 1 12:38:43 CEST 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r47741:a3808c44744d
Date: 2011-10-01 11:21 +0200
http://bitbucket.org/pypy/pypy/changeset/a3808c44744d/

Log:	For now, always use "python" to run trackgcroot.py. Running pypy is
	slower, particularly now that each invocation is typically 0.2-0.5
	seconds.

diff --git a/pypy/translator/c/genc.py b/pypy/translator/c/genc.py
--- a/pypy/translator/c/genc.py
+++ b/pypy/translator/c/genc.py
@@ -563,7 +563,10 @@
             else:
                 mk.definition('PYPY_MAIN_FUNCTION', "main")
 
-            if sys.platform == 'win32':
+            if (py.path.local.sysfind('python') or
+                py.path.local.sysfind('python.exe')):
+                python = 'python '
+            elif sys.platform == 'win32':
                 python = sys.executable.replace('\\', '/') + ' '
             else:
                 python = sys.executable + ' '


More information about the pypy-commit mailing list