[pypy-svn] r36229 - in pypy/dist/pypy/tool/build: . bin
guido at codespeak.net
guido at codespeak.net
Mon Jan 8 11:12:26 CET 2007
Author: guido
Date: Mon Jan 8 11:12:25 2007
New Revision: 36229
Modified:
pypy/dist/pypy/tool/build/bin/client
pypy/dist/pypy/tool/build/client.py
Log:
(cfbolz, guido): Logging to the buildtemp now to allow multiple builds to run
at the same time.
Modified: pypy/dist/pypy/tool/build/bin/client
==============================================================================
--- pypy/dist/pypy/tool/build/bin/client (original)
+++ pypy/dist/pypy/tool/build/bin/client Mon Jan 8 11:12:25 2007
@@ -5,7 +5,7 @@
from py.execnet import PopenGateway
from pypy.tool.build import outputbuffer
-def compile(wc, compileinfo):
+def compile(wc, compileinfo, buildpath):
code = """\
import sys
import os
@@ -21,7 +21,7 @@
compileinfo = %r
# log locally too
- log = open('/tmp/buildclient.log', 'a')
+ log = open('%s/compile.log', 'a')
outbuffer = OutputBuffer(log)
sys.stdout = outbuffer
sys.stderr = outbuffer
@@ -63,7 +63,8 @@
"""
gw = PopenGateway()
interpolated = py.code.Source(outputbuffer,
- code % (str(wc), compileinfo))
+ code % (str(wc), compileinfo,
+ str(buildpath)))
channel = gw.remote_exec(interpolated)
try:
upath = channel.receive()
Modified: pypy/dist/pypy/tool/build/client.py
==============================================================================
--- pypy/dist/pypy/tool/build/client.py (original)
+++ pypy/dist/pypy/tool/build/client.py Mon Jan 8 11:12:25 2007
@@ -207,7 +207,8 @@
try:
print 'starting compilation'
- upath, log = compilefunc(svnwc, request.compileinfo)
+ upath, log = compilefunc(svnwc, request.compileinfo,
+ temp)
except (SystemExit, KeyboardInterrupt):
print 'quitting...'
break
More information about the Pypy-commit
mailing list