wxPython and py2app

Anyone have some sweet py2app setup.py's they would like to share?

I notice that if I open the app py2app includes the .py files. Is
there a way to just include the compiled py files?

Mark

I meant to also say the default setup.py leaves me with quite a large
app to distribute.

Mark

···

On Jun 19, 9:30 pm, Mark <markree...@gmail.com> wrote:

Anyone have some sweet py2app setup.py's they would like to share?

I notice that if I open the app py2app includes the .py files. Is
there a way to just include the compiled py files?

Mark

Hi Mark,

···

2011/6/20 Mark <markreed99@gmail.com>:

Anyone have some sweet py2app setup.py's they would like to share?

Sure, see Task Coach download | SourceForge.net,
line 115 and further.

Cheers, Frank

Mark wrote:

I meant to also say the default setup.py leaves me with quite a large
app to distribute.

Yes, because you have to ship the Python interpreter, and that's a
multimegabyte DLL.

···

On Jun 19, 9:30 pm, Mark <markree...@gmail.com> wrote:

I notice that if I open the app py2app includes the .py files. Is
there a way to just include the compiled py files?

py2exe will ship the tokenized pyc files for all modules except the main
one. If you want more protection than that, just make your main program
something like this, and move the guts into a module:
    import myproject
    if __name__ == "__main__":
        myproject.main()

--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.

I meant to also say the default setup.py leaves me with quite a large
app to distribute.
   

Not much you can do about that -- python is pretty big, wx is very big, and py2app produces a universal bundle, so you get tow of all the compiled code. Fortunately, disk space is cheap these days, and bandwidth getting more so.

For more py2app questions, I'd try the python-mac list.

-Chris

···

On 6/19/2011 6:31 PM, Mark wrote:

Mark

On Jun 19, 9:30 pm, Mark<markree...@gmail.com> wrote:
   

Anyone have some sweet py2app setup.py's they would like to share?

I notice that if I open the app py2app includes the .py files. Is
there a way to just include the compiled py files?

Mark