Re: [Pyobjc-dev] buildapplication strawman
Brought to you by:
ronaldoussoren
From: Jack J. <Jac...@or...> - 2002-11-17 21:53:07
|
On zondag, nov 17, 2002, at 21:44 Europe/Amsterdam, Just van Rossum wrote: > I'd like to turn it into a module, refactored in a nicely extensible > way. Your code appears to be a modified version of Mac/script/buildappbundle.py, or is the similarity a coincidence? Anyway, my plan was to put the buildappbundle functionality into Mac/Lib/buildtools.py when I find the time for it. Putting your buildapp functionality in there as well should be a minor task. And then the code should be factored into an OS9-only bit (which would have all the MacPython-specific stuff dealing with opening resource forks and such) that wouldn't be imported if we're on OSX. > 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>/"). Great minds think alike:-) I was just thinking the same thing when cycling home today: freeze's module finder should get an optional argument that would make it skip any modules in the standard python distribution. This is fairly simple: any sys.path entry that starts with sys.prefix or sys.exec_prefix except for site-packages could be considered the standard distribution. -- - Jack Jansen <Jac...@or...> http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman - |