[pypy-dev] File overwriting (--output flag to translate.py)

Armin Rigo arigo at tunes.org
Mon Apr 11 21:27:09 CEST 2011


Re-Hi,

On Mon, Apr 11, 2011 at 2:45 PM,  <pypy at pocketnix.org> wrote:
> +        # Ensure the file does not exisit else we fail at end of translation
> +        if os.path.isfile(drv.exe_name):
> +            raise ValueError('File "' + drv.exe_name+ '" already exisits (--output)')

Sadly everyone so far has his own additional hacks to categorize
multiple translated versions.  Mine is to ignore the pypy-c entirely
and copy the executable from the /tmp, after it has been produced
there.  I also copy the C sources (but not the other files produced by
gcc).  Anyway, my point is that the particular change you are
proposing would actually harm me, because I always have a pypy-c and
I'm fine if it gets overwritten by every translation :-)

We need to think of some better solution...

Armin



More information about the Pypy-dev mailing list