On 13 May, 2013, at 10:05, Olivier Cornu <o.co...@gmail.com> wrote: > Hi, > > We have a python app we distribute on several platforms, including a > py2app-built standalone application for Mac. > > Some of our data_files are platform-specific (icons, man pages…) and should > therefore only be included where relevant. We use the MANIFEST.in mechanism > to select which data_files get excluded from the builds produced. However, > py2app does not seem to abide by it.
py2app does not use the MANIFEST file, that file is meant to be used with the sdist command. > We've also tried defining data_files more restrictively so that only desired > files figures in it. The whole data/ folder gets included nonetheless. > So far, the only solution we've found to this problem is to remove undesired > files from the .app folder using a post-processing shell script (i.e. running > after py2app). A rather inelegant hack. py2app currently doesn't have a way to filter which parts of a data folder gets included in the application bundle (that is, when you tell py2app to include 'data' you cannot tell it to exclude 'data/windows.dat'). > > What is the standard way to get fine-grained control over what data files > py2app includes/excludes? > We noticed that, contrary to other setup.py build commands, py2app does not > create a egg-info directory on its own. py2app doesn't use the egg-info data at all (and will also not include the egg-info directories of packages it copies into the application). That py2app is a distutils command is an historical accident, in the long run I'd like to refactor py2app into a standalone tool with a distutils command for backward compatibility. I have no idea when I'll get around to actually doing that. > Is it normal beahvior? Would py2app follow this egg-info regarding data > files, if we built one beforehand? No. 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