[pypy-svn] r33890 - in pypy/dist/pypy/tool/build: . bin

guido at codespeak.net guido at codespeak.net
Mon Oct 30 15:33:40 CET 2006


Author: guido
Date: Mon Oct 30 15:33:32 2006
New Revision: 33890

Modified:
   pypy/dist/pypy/tool/build/bin/client
   pypy/dist/pypy/tool/build/config.py
Log:
Getting closer to actually compiling, using 'c' as default backend.


Modified: pypy/dist/pypy/tool/build/bin/client
==============================================================================
--- pypy/dist/pypy/tool/build/bin/client	(original)
+++ pypy/dist/pypy/tool/build/bin/client	Mon Oct 30 15:33:32 2006
@@ -12,6 +12,9 @@
 from pypy.config.config import to_optparse, Config
 from pypy.config import pypyoption
 
+from pypy.translator.goal import targetpypystandalone
+from pypy.translator.driver import TranslationDriver
+
 if config.server in ['localhost', '127.0.0.1']:
     gw = PopenGateway()
 else:
@@ -39,6 +42,10 @@
             config.override(compileinfo)
 
             # XXX compile here...
+            driver = TranslationDriver.from_targetspec(
+                        targetpypystandalone.__dict__, config=config,
+                        default_goal='compile')
+            driver.proceed()
 
             # write the zip to the server in chunks to server
             # XXX we're still faking this

Modified: pypy/dist/pypy/tool/build/config.py
==============================================================================
--- pypy/dist/pypy/tool/build/config.py	(original)
+++ pypy/dist/pypy/tool/build/config.py	Mon Oct 30 15:33:32 2006
@@ -3,7 +3,7 @@
 packageparent = py.magic.autopath().dirpath().dirpath().dirpath().dirpath()
 
 # general settings, used by both server and client
-server = 'localhost'
+server = '134.99.66.245'
 port = 12321
 path = [str(packageparent)]
 
@@ -20,6 +20,7 @@
 # cmdline args, defaults are taken from the optiondescription
 from pypy.config.pypyoption import pypy_optiondescription
 compile_config = Config(pypy_optiondescription)
+compile_config.override({'translation.backend': 'c'})
 
 # settings for the server
 projectname = 'pypy'



More information about the Pypy-commit mailing list