>
> (Py)GTK relies on a number of environment variables for locating
> resources and also for loading the native libraries. You can find an
> examples script here:
> http://winswitch.org/trac/browser/trunk/osx/bundle/Window-Switch.sh
> Note: this is meant to be used in a bundled app, if you are using it
> from your development tree you will probably need to tweak it.


I'm not able to understand what that script does :-( Isn't it possible to
bundle the pygtk app using a setup.py and py2app?


> The app bundle itself isn't much, it's just a directory structure:
>
> YourApp.app
> └── Contents
>    ├── Info.plist
>    ├── MacOS
>    │   └── yourapp
>    └── Resources
>        └── yourapp.icns
>
> The tricky part is when using an interpreted language like Python,
> and including all the libraries used (like GTK+) inside the bundle.
> In order to use a relative path, like "@executable_path/../*", one
> also has to include the interpreter - in this case a "python" binary.
>
> That's the magic that the "ige-mac-bundler" helper is doing for you.
>

This page (https://live.gnome.org/GTK%2B/OSX/Python) says ige-mac-bundler
does work properly with Python. Or, does it?


> The stand-alone installation was for just using PyGTK without having
> to build and bundle it, similar to using it on Windows (or Linux) ?
> So there were no important differences or patches done, and all the
> development on GTK+ 3, or Integration, or whatever, happens elsewhere.
>
> But if it's just that linker issue that is stopping you from using
> the all-in-one bundle, it would be possible to do a relocatable one...
> (one does have to patch a few other packages, to not hardcode paths)
> I could take a look at it, after transitioning to the new project*.
>

Will you be able to take a look if I upload the source code? I'm surely
doing something wrong. :(


> * The PyGTK.pkg got relocated to: http://macpkg.sourceforge.net/
> It also got upgraded from 2.22 to 2.24, and had Lion support added.
> That is, it supports 32-bit and 64-bit Python 2.5, 2.6 and 2.7 on
> Mac OS X 10.5 Leopard and above - but it is (not yet?) relocatable.
>

I'm planning to start clean with gtk-osx. What do I do to uninstall
PyGTK.pkg? To undo it's path changes.

Thanks a lot :)
Shrihari
_______________________________________________
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to