[pypy-svn] r16675 - pypy/release/0.7.x/pypy/translator/goal

pedronis at codespeak.net pedronis at codespeak.net
Fri Aug 26 20:07:47 CEST 2005


Author: pedronis
Date: Fri Aug 26 20:07:45 2005
New Revision: 16675

Added:
   pypy/release/0.7.x/pypy/translator/goal/targetnopstandalone.py
      - copied, changed from r16666, pypy/release/0.7.x/pypy/translator/goal/targetpypystandalone.py
Modified:
   pypy/release/0.7.x/pypy/translator/goal/translate_pypy.py
Log:
oops, was broken



Modified: pypy/release/0.7.x/pypy/translator/goal/translate_pypy.py
==============================================================================
--- pypy/release/0.7.x/pypy/translator/goal/translate_pypy.py	(original)
+++ pypy/release/0.7.x/pypy/translator/goal/translate_pypy.py	Fri Aug 26 20:07:45 2005
@@ -658,10 +658,11 @@
             else:
                 print 'Generating and compiling C code...'
                 c_entry_point = t.ccompile(standalone=standalone, gcpolicy=gcpolicy)
-                if standalone:
+                if standalone: # xxx fragile and messy
+                    import py
                     p = py.path.local(c_entry_point)
                     p.rename('pypy-c')
-                    c_entry_point = str(p.new(basename='pypy-c'))
+                    c_entry_point = './pypy-c'
             update_usession_dir()
             if not options['-o']:
                 print 'Running!'



More information about the Pypy-commit mailing list