[Pythonmac-SIG] distutils.errors.DistutilsFileError: file '/Library/Python/2.5/site-packages/setuptools-0.6c8-py2.5.egg/pkg_resources.pyc' does not exist

Ronald Oussoren ronaldoussoren at mac.com
Thu Mar 27 17:42:06 CET 2008


On 27 Mar, 2008, at 17:14, Emanuele Santos wrote:
> The problem with jpeg in Qt is that it's included as a plugin. I don't
> know about the .dmg installation, as I built mine from source.
>
> I remember that I didn't know how to fix py2app to handle this, so I
> used this hack:
> After running, py2app, I copied the contents of the Qt plugins
> directory to the MacOS folder inside the bundle, used
> install_name_tool  to point the dylibs to the bundle's Qt framework,
> png and jpeg dylibs; and put an empty qt.conf file in the Resources
> folder.

It should be possible to teach py2app to do this automaticly for you,
there is already a recipe that triggers when pyQt is used by a program  
and
adding this logic should be doable.

>
>
> The other problem I had is if a user has a Qt installation in the same
> directory you had when you built the bundle, there will be conflicts
> when loading the libraries. The empty qt.conf should solve that, but
> qt still searches for the plugins in the installed directory first.

That one is harder to fix and seems to require the cooperation of the Qt
maintainers.

Ronald

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2224 bytes
Desc: not available
Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20080327/5d0356fc/attachment.bin 


More information about the Pythonmac-SIG mailing list