[PEAK] Packaging peak apps

Roché Compaan roche at upfrontsystems.co.za
Wed Sep 29 13:25:52 EDT 2004


* Phillip J. Eby <pje at telecommunity.com> [2004-09-29 17:01]:
> At 02:39 PM 9/29/04 +0200, Roché Compaan wrote:
> >It does! And it is fairly simple to do. I basically built the distro with 
> >py2exe, extracted library.zip to a folder named library.zip and copied in 
> >missing packages and modules. I've only tested this by making an exe for 
> >the peak script and it seems to work fine.
> 
> Now, for extra credit, develop a distutils 'Command' object to do the steps 
> you just described, by having it invoke the py2exe command, etc.  Then, you 
> won't have to worry about forgetting steps, and you'll be ready to package 
> other apps in this way.  For some example Command objects, check out the 
> distutils.command package in the stdlib, or the setuptools.command package 
> in PEAK or PyProtocols CVS.  (The setuptools ones are simpler.)

Should all be doable, except for copying in missing packages and
modules. I determined which are missing by running the executable and
letting the traceback tell me. If it is always the same files that are
missing then it should work but it won't and will depend on how
effective py2exe's module inspector is for a given application. 

-- 
Roché Compaan
Upfront Systems                 http://www.upfrontsystems.co.za



More information about the PEAK mailing list