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

tismer at codespeak.net tismer at codespeak.net
Thu Sep 1 23:06:15 CEST 2005


Author: tismer
Date: Thu Sep  1 23:06:14 2005
New Revision: 17158

Modified:
   pypy/dist/pypy/translator/goal/translate_pypy.py
Log:
using shutil.copy instead of move:

reasoning:

- the executable is small comparing to the C source which we leave behind.
- having the duplicate binary in the usession saves some time, if you
- forget to manually rename your executable in the working directory

Modified: pypy/dist/pypy/translator/goal/translate_pypy.py
==============================================================================
--- pypy/dist/pypy/translator/goal/translate_pypy.py	(original)
+++ pypy/dist/pypy/translator/goal/translate_pypy.py	Thu Sep  1 23:06:14 2005
@@ -665,7 +665,7 @@
                     import shutil
                     exename = mkexename(c_entry_point)
                     newexename = mkexename('./pypy-c')
-                    shutil.move(exename, newexename)
+                    shutil.copy(exename, newexename)
                     c_entry_point = newexename
             update_usession_dir()
             if not options['-o']:



More information about the Pypy-commit mailing list