Do I need to add 'path_to_jpglib = os.path.join(DIR_TO_IMAGING_SO, 
'../../../../lib',  'libjpeg.7.dylib) ' to my spec file ? Or are you adding 
a new case for Pyinstaller to handle? Or am I missing something else?

On Tuesday, June 19, 2012 11:39:42 AM UTC-7, Martin Z wrote:
>
> mmiscavage píše v Út 19. 06. 2012 v 10:43 -0700: 
> > The absolute path to libjpeg.7.dylib 
> > is: 
> /Library/Frameworks/Python.framework/Versions/7.2/lib/libjpeg.7.dylib The 
> absolute path to _imaging.so is: 
> /Library/Frameworks/Python.framework/Versions/7.2/lib/python2.7/site-packages/PIL/_imaging.so
>  
>
>
> When looking for @rpath info I found out that: 
> - osx uses MachO binary format 
> - we should read MachO command LC_RPATH from the _imaging.so binary 
> - value of LC_RPATH should be in your case '../../../' or 
> '../../../../lib' 
> - then we need to replace @rpath by this relative path and get absolute 
> path for it: 
>
>   path_to_jpglib = os.path.join(DIR_TO_IMAGING_SO, '../../../../lib', 
>       'libjpeg.7.dylib) 
>
> - PyInstaller uses macholib for manipulation with binaries on osx. 
> - I think macholib should be able to read the value of LC_RPATH from 
> _imaging.so 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/pyinstaller/-/vc8D8E481ZEJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyinstaller?hl=en.

Reply via email to