On Sat, May 23, 2009 at 12:15 PM, Pavel Panchekha
<
PavPan...@gmail.com> wrote:
>
> I've written a rather large application with ply as the parser, and it
> works pretty well. The problem now is that I now want to redistribute
> my application, and thus I want to ship precompiled parser tables.
> Now, I'm currently compiling the optimized-mode lexer and parser
> tables, and I specify what directory the tables are supposed to be.
> Now, when I install ply to /usr/local, the program works, but
> unfortunately recompiles the tables every time. This isn't too great,
> because this can take a few seconds.
>
> Now, if I make the directory that I've specified as outputdir world-
> writable (0777), ply will put tables there, but will constantly
> recompile them. So it can find the files there, but it isn't using
> them.
>
> Do I need to copy over .pyc files over, too? Do I need to pass magic
> arguments to ply?
>
I think this has been covered before once or twice on this list. Try
this thread, as well as another thread or two linked from within it: