Scott Ballard píše v Út 08. 05. 2012 v 09:02 -0700:
> Is there a hook or place in Pyinstaller that I can give it a binary
> (Imagemagick) I want to include and it will use
> 'mac_set_relative_dylib_deps()' to set the dependencies relative to
> the archive? Or do I have to implement it myself? Do I need to create
> a Pyinstaller hook like PyQt is being hooked?

Hi Scott,

You need to create a hook like PyQt hooks. You need to add the 'convert'
utility in 'hook()' function to other binary dependencies, as it is done
with qt4 plugins. For example see hook-PyQt4.QtCore.py.

You need to add to your hook code like:

def hook(mod):
    mod.binaries.extend([
        (PATH_TO_CONVERT_ON_FILESYSTEM, NAME_OF_THE_FILE_IN_DIST_DIR)
    ])
    return mod



-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
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