[pypy-svn] r38325 - pypy/dist/pypy/translator/goal

cfbolz at codespeak.net cfbolz at codespeak.net
Fri Feb 9 23:26:08 CET 2007


Author: cfbolz
Date: Fri Feb  9 23:26:06 2007
New Revision: 38325

Modified:
   pypy/dist/pypy/translator/goal/targetpypystandalone.py
Log:
ouch, add sys.pypy_translation_info only _after_ the thread option was handled.
Is there a good reason not to do this as a dependency?


Modified: pypy/dist/pypy/translator/goal/targetpypystandalone.py
==============================================================================
--- pypy/dist/pypy/translator/goal/targetpypystandalone.py	(original)
+++ pypy/dist/pypy/translator/goal/targetpypystandalone.py	Fri Feb  9 23:26:06 2007
@@ -118,12 +118,6 @@
         # expose the following variables to ease debugging
         global space, entry_point
 
-        # obscure hack to stuff the translation options into the translated PyPy
-        import pypy.module.sys
-        options = make_dict(config)
-        wrapstr = 'space.wrap(%r)' % (options)
-        pypy.module.sys.Module.interpleveldefs['pypy_translation_info'] = wrapstr
-
         if config.translation.thread:
             config.objspace.usemodules.thread = True
         elif config.objspace.usemodules.thread:
@@ -141,6 +135,12 @@
         import translate
         translate.log_config(config.objspace, "PyPy config object")
  
+        # obscure hack to stuff the translation options into the translated PyPy
+        import pypy.module.sys
+        options = make_dict(config)
+        wrapstr = 'space.wrap(%r)' % (options)
+        pypy.module.sys.Module.interpleveldefs['pypy_translation_info'] = wrapstr
+
         return self.get_entry_point(config)
 
     def get_entry_point(self, config):



More information about the Pypy-commit mailing list