[Pyobjc-dev] buildapplication strawman
Brought to you by:
ronaldoussoren
From: Just v. R. <ju...@le...> - 2002-11-17 20:44:57
|
I've attached a small and very quickly hacked up script that will build an applet for the TableModel demo (the original, not #2). Drop it in that folder and run it from the command line. What it does is create a bunch of folders, copies a bunch of files, and poof, there's an app. It basically does the same thing as Ronalds setup-app.py script, except it doesn't depend in (MacPython's) buildtools.py, which in turn depends on some Mac-specific modules not available in the Apple-shipped Python 2.2. I'd like to turn it into a module, refactored in a nicely extensible way. The next step would be to plug in freeze's module finder and (optionally) copy all modules the main program depends on to Contents/Resources as well. An interesting middle way might be to _only_ copy those modules that are not shipped by Apple (ie. only everything in site-packages and sys.path entries not enclosed in sys.prefix + "/lib/python<version>/"). It could in theory be a distutils extension, but I'm not sure that buys us much: it only needs to copy files and compile .py files into .pyc (it doesn't do the latter yet, though). On the other hand: py2exe is a distutils extension, and that works wonderfully (it builds standalone Windows executables). Comments? Just |