[Pythonmac-SIG] Trying to make an app

Bob Ippolito bob at redivi.com
Wed Oct 6 16:08:52 CEST 2004


On Oct 6, 2004, at 8:31 AM, Charles Hartman wrote:

>> py2app should pretty much just work if you give it your script.  I 
>> don't have wxPython on this machine so I can't tell if anything 
>> special needs to be done or not, but I'm relatively certain it should 
>> Just Work if memory serves correctly.  Look at the examples 
>> directory.
>>
> I apologize for a really lame question -- but where do I put the (now) 
> py2app-0.1.1 folder when I've downloaded it? Should I be trying to 
> make an .app file of py2app itself? If I put the folder in  
> /Library/Python/2.3 with other packages like wxPython and Numeric, and 
> try the Terminal command 'python setup.py py2app', I get the errmsg 
> "invalid command 'py2app' (no module named 
> 'distutils.command.py2app'". If I just double-lick the 'setup.py' file 
> in (for instance) .../py2app-0.1.1/examples/wxPython/doodle, I get "no 
> module named py2app". Same message if I navigate to 
> .../tools/py2applet and use "python setup.py py2app".
>
> So I can see I'm doing something really *basically* stupid here, but 
> none of the logical (?) alternatives I've tried gives me an error 
> message with enough of a hint to steer me. Sorry; I know the inside of 
> Python, however poorly, a lot better than the outside.

Same way you install just about anything else for Python..

% cd py2app-0.1.1
% sudo python setup.py install

-bob


More information about the Pythonmac-SIG mailing list