[pypy-dev] Can't import pyc file

cool-RR cool-rr at cool-rr.com
Tue May 10 10:27:14 CEST 2011


On Tue, May 10, 2011 at 3:53 AM, Antonio Cuni <anto.cuni at gmail.com> wrote:

> On 10/05/11 00:36, cool-RR wrote:
> > Is it true that Pypy can't import a `.pyc` file?
>
> yes, by default pyc files which don't have the corresponding py file are
> ignored.
>
> You can change the behavior by translating pypy by yourself and using the
> --objspace-lonepycfiles option:
>
> $ ./translate.py -Ojit targetpypystandalone --objspace-lonepycfiles
>
> ciao,
> Anto
>

Is it possible to make an existing Pypy installation accept lone pyc files
with some flag or something?


Ram.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20110510/b634d966/attachment.html>


More information about the pypy-dev mailing list