I don't think this is possible with macholib, py2app is the primary use case 
for developing macholib and doesn't need this functionality.  

Why do you want to do this? I'd expect there to be a real dependency on the 
library (by using a symbol from it) and removing the load command would just 
cause a crash. It might be possible to change the load command to a weak 
linking one, although I don't know if that would require changes to the loaded 
symbols as well. Anyway, afaik macholib doesn't support that either (yet). 

Ronald

--
On the road, hence brief. 

Op 1 jul. 2016 om 18:37 heeft Matthew Brett <matthew.br...@gmail.com> het 
volgende geschreven:

> Hi,
> 
> I'm sorry if this is an easy question to which I have missed an
> obvious answer, but
> 
> Is there any way (using macholib or otherwise) to delete a library
> dependency?  Specifically, let's say I have a library with
> dependencies like this:
> 
> $ otool -L libdlib.19.0.99.dylib
> 
> libdlib.19.0.99.dylib:
> /Users/mb312/dev_trees/dlib-wheels/dlib/dlib/libdlib.19.0.99.dylib
> (compatibility version 0.0.0, current version 19.0.99)
> /opt/X11/lib/libSM.6.dylib (compatibility version 7.0.0, current version 
> 7.1.0)
> /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.0.0)
> /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
> version 1197.1.1)
> 
> and I want to delete the dependency on /opt/X11/lib/libSM.6.dylib - is
> there a way do this?  As in something like:
> 
> delete_install_name /opt/X11/lib/libSM.6.dylib libdlib.19.0.99.dylib
> 
> Thanks for any insights,
> 
> Matthew
> _______________________________________________
> Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
> https://mail.python.org/mailman/listinfo/pythonmac-sig
> unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
https://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG

Reply via email to