> Obviously creating .pyc files is system specific. Most solutions
> proposed so far will fail on the Macintosh and PC environments. I see
> two solutions: (1) leave it as is and don't worry about it; (2) turn
> off caching and speed up the compiler.
I like the idea of speeding up the compiler, but why not just make the
caching optional. That is, run the interpreter with a -compile flag
to explicitly generate the .pyc file. Next, add a command line switch
to the interpreter to allow the direct execution of .pyc files. Then
the .pyc file could simply be installed where it is needed. Just make
the first line of the .pyc file
#!python -pyc
and set execute permission on it.
______ ______
\_\_\_\ /#/#/#/
\_\_\_\ ______
\_\_\_V#/#/#/ Donald Beaudry don@vicorp.com
\_\_/#/#/#/ V. I. Corporation uunet!vicorp!don
\_/#/#/#/ 47 Pleasant Street PHONE: (413) 586-4144
V#/#/#/ Northampton, MA 01060 FAX: (413) 586-3805