[pygtk] OS X Deployment

F Wolff friedel at translate.org.za
Wed Jul 22 05:15:17 WST 2009


Op Ma, 2009-07-20 om 10:59 -0600 skryf Bertrand Son Kintanar:
> Hi List,
> 
> Is there a guide that I can follow on how to deploy my application in
> an OS X environment? currently my application has an Win32 installer
> and it runs smoothly in Linux since it's my main development platform.
> I also have successfully ran my program in OS X by the help of jhbuild
> in which I have installed the GTK+OSX framework and also have
> installed PyGTK in it. But my question is how will I automatically
> deploy my application in OS X since it needs X11 to run. Is there a
> command that will run the python script in X11 rather than to run it
> in its default OS X environment?
> 
> I get an locale error when running it in the OS X terminal but when I
> run it in X11 server, I don't get the same error.
> 
> please advice.


Hallo Bertrand

I have not yet succeeded in everything with our app, but hopefully it
saves you a bit of time while we work it out together.

Have a look at the setup.py file for Virtaal:
http://translate.svn.sourceforge.net/viewvc/translate/src/trunk/virtaal/setup.py

Look for 'py2app' and 'darwin' to find the osx-specific bits. That is
the biggest part about making an installable .dmg file. Also see the
last comment lines in the file.

I am definitely not saying that everything in there is the right way,
but this is how far I have gotten with very little time. I have not so
far used the X11 version of GTK+, but newer the standalone version.

I hope we can figure things out together.

Keep well
Friedel

--
Recently on my blog:
http://translate.org.za/blogs/friedel/en/content/firefox-35-released



More information about the pygtk mailing list