From: Guillaume P. <gui...@sc...> - 2005-01-26 07:06:41
|
Will Newton <will <at> misconception.org.uk> writes: > I have a couple of command line tools and a windows application. Together they > use a few data files and a third party library (Pygame). I've written a The pygame mailing list is full of people who can help you tweak your setup file to get the best results for pygame. > When I try a py2exe build I get a lot of files generated in the dist > directory, *.pyd files, *.dll files and the executables as expected. Do I > need to distribute all these files? Is there a recommended way to do this, > i.e. if I need to put them all in a zip, is there a way to do this from > distutils? py2exe simply crawls all dependencies you might have in your code and pushes all those (seemingly) dependant files into the dist directory: - pyd (who are actually standard DLLs with a custom extension) - dll (which are DLL that usually are loaded by pyd files) - zip (which contains all your PURE python modules in the usual hierarchy) Some of them might actually not be useful. For example, if you use the logging module, it will pull in all of sockets, ssl support etc. But if you are like me you settled on a single logging system (to files) so those files might be safely ignored. You can ask py2exe to ignore them with an "ignores" option. The best documentation for py2exe STILL is its source-code. Regards, Guillaume |