Hi Bob,
Thanks for your explanation, this was exactly what I was looking for,
just thought I was doing something wrong before.
Thanks again!
Eric
On 5/26/05, Bob Ippolito <bob@...> wrote:
> On May 25, 2005, at 10:24 PM, Eric Hochmeister wrote:
>=20
> > I'm making a PyObjC plugin to use in an ObjC app, and when I create
> > the plugin I'm noticing that the source code for the plugin is being
> > stored in the /Blah.plugin/Contents/Resources/ rather than the
> > byte-compiled file. I've read over the documentation and haven't
> > found anything on this topic. I figured it would automaticaly include
> > the .pyc file rather than the .py because when py2app is running it
> > prints the statement,
> >
> > byte-compiling /blah/blah.py to blah.pyc
> >
> > where blah.py is the plugin specified in setup.py as
> >
> > setup(
> > plugin =3D ['blah.py']
> > )
> >
> > Is there any ideas on how to prevent py2app from including my python
> > source files and include the byte-compiled file instead?
>=20
> The main script file is always included as-is (whether app or
> plugin), but the interpreter will most likely use the byte-compiled
> pyc (which resides in site-packages.zip). If you don't want someone
> to see meaningful code, then don't put it meaningful code in the main
> script.
>=20
> It doesn't really need to be this way, but it is, and I'm going to
> leave it that way for a while because there are more important things
> in the TODO. A donation might convince me otherwise, or you could
> write a patch -- if it doesn't break anything else, I'll commit it :)
>=20
> -bob
>=20
>
|