[Pythonmac-SIG] [PATCH] macholib better exclude

Cezary Krzyżanowski dhubleizh at o2.pl
Tue Sep 1 17:24:52 CEST 2009


Hello!

I've been fighting my way through py2app and trying to exclude  
QtSomething_debug libraries and been unable to do it via py2app -E  
QtCore_debug.

I'm sending a patch to macholib, which makes excludes work in a sane  
way:
1. There was a exclude finding loop but it returned the filename when  
the file was found in excludes
2. Moved the checking loop at the top --- if someone want's to exclude  
some system or other important files --- he probably already knows  
their importance if he dug deep to find them
3. Make it possible to add just the name of excluded file/lib, not the  
whole path

<wishful thinking>
* make py2app understand exclude option --- now only manually  
supplying python setup.py py2app -E works
* make excludes regexps
* get py2app recipes the possibility to work in all steps of building  
the bundle, not only in the module resolution (for example I want to  
exclude a library which is found out late in py2app when calling  
PythonStandalone); another filter hook for let's say binary files  
produces while running PythonStandalone would rock my socks of!!
</wishful thinking>

Czarek
-------------- next part --------------
A non-text attachment was scrubbed...
Name: arbitrary_exclude.patch
Type: application/octet-stream
Size: 833 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20090901/2d0ee5a5/attachment.obj>
-------------- next part --------------



More information about the Pythonmac-SIG mailing list