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

hpk at codespeak.net hpk at codespeak.net
Sat Aug 27 19:43:55 CEST 2005


Author: hpk
Date: Sat Aug 27 19:43:54 2005
New Revision: 16814

Modified:
   pypy/release/0.7.x/pypy/translator/goal/translate_pypy.py
Log:
move the resulting pypy-c with shutil 
to allow moves across devices


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	Sat Aug 27 19:43:54 2005
@@ -659,9 +659,8 @@
                 print 'Generating and compiling C code...'
                 c_entry_point = t.ccompile(standalone=standalone, gcpolicy=gcpolicy)
                 if standalone: # xxx fragile and messy
-                    import py
-                    p = py.path.local(c_entry_point)
-                    p.rename('pypy-c')
+                    import shutil
+                    shutil.move(c_entry_point, 'pypy-c')
                     c_entry_point = './pypy-c'
             update_usession_dir()
             if not options['-o']:



More information about the Pypy-commit mailing list