[Pythonmac-SIG] Re: BundleBuilder aftermath
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.includeModules.append(os.path.join(packageroot, "fnfFont"))
> # Here you add supporting files and/or folders to your bundle
> # bundlebuilder does not yet have the capability to detect what shared
> # are needed by your app - so in this case I am adding the wxPython
> libs manually
> # Here we build the app!
Now I have to figure out why pygame isn't finding surfarray. The .so is
definitely in the pygame folder.
More information about the Pythonmac-SIG