On 19 Feb, 2011, at 12:22, Prashant Saxena wrote: > Hi, > > It's related to my previous post regarding .app bundle size produce by > py2app. > When I looked inside the .app bundle, > It gives me some confusion: > > 1. I have a custom package name "core". There is directory structure inside > filled with scripts. Some of the scripts are compiled > using cython. This give you three version of single script (.py, .pyc and > .so). > py2app is copying .so to .lib folder inside bundle as > well as it's also copying .py and .pyc inside "site-package/core". Why it's > like > that?
The .so is copied into lib-dynload, the .py/.pyc inside the zipfile are special loader scripts that will load the extension from lib-dynload. This is needed because extensions cannot be in the zipfile. > > 2. Not only python scripts but every thing under the folder is going inside > the > .app. It seems py2app is globing all the files instead of required > modules/scripts. py2app currently copies all data files in a python package directory. This is done because setuptools allows you to have such data, and without copying data files some python software don't work. Why do you have files in your python package directory that aren't needed to run the software? Ronald _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG