[Pythonmac-SIG] Re: BundleBuilder aftermath

Keith Nemitz keithn at 2xtreme.net
Mon Dec 15 14:09:02 EST 2003


> When that happens to me, it usually means I have a Python error that
> shows up as a traceback on the console.  Have you looked there for any
> messages that might explain the quitting behavior?
>
I was able to run the app from Terminal, and I solved a couple issues.

Here's the latest built app that is working better.

> import bundlebuilder, os
>
> # I set this to make adding subfolders into the package easier
> packageroot = "/Users/musenik/wednesday/project"
>
> # Create the AppBuilder
> myapp = bundlebuilder.AppBuilder(verbosity=1)
>
> # Tell it where to find the main script - the one that loads on startup
> myapp.mainprogram = os.path.join(packageroot, "main.py")
>
> myapp.standalone = 1
> #myapp.strip = 1
> myapp.name = "myApp"
>
> # includePackages forces certain packages to be added to the app bundle
> #myapp.includePackages.append("encodings")
> myapp.includePackages.append("pygame")
> #myapp.includeModules.append(os.path.join(packageroot, "fnfFont"))
>
> # Here you add supporting files and/or folders to your bundle
> myapp.resources.append("/Library/Frameworks/Python.framework/Versions/ 
> 2.3/lib/python2.3/lib-dynload/cStringIO.so")
>
> # bundlebuilder does not yet have the capability to detect what shared  
> libraries
> # are needed by your app - so in this case I am adding the wxPython  
> libs manually
> #myapp.libs.append("/usr/local/lib/libwx_macd-2.4.0.dylib")
>
> # Here we build the app!
> myapp.setup()
> myapp.build()

Now I have to figure out why pygame isn't finding surfarray. The .so is  
definitely in the pygame folder.


Keith Nemitz




More information about the Pythonmac-SIG mailing list