[Pythonmac-SIG] modifying setup.py: py2exe -> py2app

Bob Ippolito bob at redivi.com
Wed Feb 2 09:32:36 CET 2005


On Feb 2, 2005, at 1:59 AM, Chris Jerdonek wrote:


>> I'm in the same boat with C. Jerdonek, though I suspect I know less.  
>> So when I saw this passage, I hung, as always, on every word from  
>> py2app's own master. Aha! I said.
>
> I think I know less, Charles.
>
> I tried the hello.py sample in the Developer directory.
>
> I copied hello & setup.py to a separate directory and ran --
> python setup.py py2app
>
> This created an executable icon in the Finder called "hello" in a  
> directory called "dist".  Will this always be the stand-alone app?   
> (From the command line hello.app is a directory, which I don't  
> understand.)

Yes,

See:  
http://developer.apple.com/documentation/MacOSX/Conceptual/ 
SystemOverview/AppPackaging/chapter_5_section_2.html

> Anyways, I double-clicked the hello icon.  It appeared on the dock and  
> immediately collapsed without any output.  Is this the desired  
> behavior?

Yes that is expected behavior, if you open up Console you will see a  
bunch of information about the environment that hello.py ran in.   
Examples that demonstrate GUI behavior depend on third party stuff.

-bob



More information about the Pythonmac-SIG mailing list