From: Grant E. <gr...@vi...> - 2007-08-30 21:25:03
|
On 2007-08-30, Larry Bates <lar...@we...> wrote: > Grant Edwards wrote: >> I've been beating my head against the wall for days trying to >> convince py2exe to include two trees of data files with my >> application. Using os.walk() and packages, package_dir, and >> package_data keywowrds I've managed to get the desired files >> into the 'build' directory, but then they don't end up in the >> 'dist' directory. >> >> How do I get a tree of data files into the 'dist' directory? >> > Grant, > > A better way of doing this is to wrap the contents of build > directory inside a setup.exe file created by Inno Installer. That's what I do with the "dist" directory after my setup script is done: create an Inno setup installer that installs the contents of the 'dist' directory on the target machine. I gave up on having distutils copy the files, and now I just call shutil.copytree() to copy the files into the 'dist' directory before I start inno setup. I guess I could have had inno setup copy the files, but I like to do it this way because I can then test the 'dist' directory without having to wait for Inno setup to run (my development machine is pretty slow). > Inno can easily include all the files you want. In addition > it can create icons, registry keys, etc. during the > installation. Reduces the distribution to a single file. Yup. -- Grant Edwards grante Yow! Half a mind is a at terrible thing to waste! visi.com |