Re: py2app on Mac OS X 10.3

From: Ronald Oussoren (ronaldoussoren_at_mac.com)
Date: 12/31/04


Date: Fri, 31 Dec 2004 12:26:48 +0100
To: Austin <austin@maxtronic.com.tw>


On 31-dec-04, at 11:12, Austin wrote:

> """
> Minimal setup.py example, run with:
> % python setup.py py2app
> """
>
> from distutils.core import setup
> import py2app
> setup(
> app = ['main.py'],
> )
>
> That is a sample code of wiki.
> I have a file 'main.py' and several sub-folders.
> After I execute 'pythonw setup.py py2exe', I see 2 folders, 'dist' &
> 'build'
> which is the same as py2exe.
> I open the 'dist' folder and see a file 'main'. Then I double-click the
> 'main' and appeared the error message.
> 'IOError:[Errno 2] No such file or directory:
> '/user/austin/Desktop/disk/main.app/Contents/Resources/log/eventlog.xml
> I feel so wildered because 'main.app' should be a file not a folder.

It's an application bundle, which is a folder. All '.app'-s on OS X are
folders, it is a neat way of bundling the application program and all
data files it needs.

>
> I was wondering if some extra codes needed by setup.py
> Could anyone give me an advice?

What is 'eventlog.xml' supposed to be? If you're going to write to it,
it is in the wrong location. If it is a datafile that is used by your
application you should mention it in the setup.py script (the
data_files argument).

Ronald



Relevant Pages

  • py2app on Mac OS X 10.3
    ... % python setup.py py2app ... from distutils.core import setup ... That is a sample code of wiki. ... I feel so wildered because 'main.app' should be a file not a folder. ...
    (comp.lang.python)
  • Re: XP2 frozen @ "to begin, click user name" screen
    ... The windows folder is fine. ... needs to be for winnt32.exe to find/install it during setup. ... deleted the old user accounts. ... So then I did the repair install w/ the XPSP2 operating system reinstall CD, ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Incorporating a 3rd party driver into a BSP/Image
    ... any sample code, I though we were talking about a the Summit binaries. ... folder and run? ... As far as 'making it part of my BSP', I'm not sure what that means ... driver into its own catalog item and add/remove them from any OS ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Installing Assemblies and Registering OCX
    ... I needed a setup becuase my data folders are ... create folders off Application Folder you'll see how it works. ... Registering an OCX - the file properties have a Register property. ... Phil Wilson [MVP Windows Installer] ...
    (microsoft.public.vsnet.setup)
  • Re: Installing Assemblies and Registering OCX
    ... If you start a setup project and just ... create folders off Application Folder you'll see how it works. ... Registering an OCX - the file properties have a Register property. ... Phil Wilson [MVP Windows Installer] ...
    (microsoft.public.vsnet.setup)

Loading