Mostrando entradas con la etiqueta pygtk. Mostrar todas las entradas
Mostrando entradas con la etiqueta pygtk. Mostrar todas las entradas

27 de septiembre de 2011

How to install GTK and PyGTK in Mac OS X Lion

I run into some problems trying to install GTK and PyGTK, but I found a workaround, so here's the trick:

You'll need to have brew installed in your system. If you don't have brew installed, you can installed just by running this command:

$ /usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"
 Now you are ready to go!

Install GTK: just run this command:
$ brew install gtk
Install PyGTK:
  • Download this: link.
  • It is a Mac installer package. Install it.
That's it!

You  can test your installation from a Python console this way:
$ python
>>> import pygtk

13 de septiembre de 2011

How to install meld in Mac OS X Lion


Missing the nice and sweet meld program for your SVN or GIT diffs in Lion?

Try this:

  1. Get and install pygtk:
  2. Get meld
  3. Extract the tar.bz2, go to the extracted directory and then run:
    1. Note: This assumes you have brew installed. If not, see here.
      • $ brew install intltool
      • $ brew install gettext
      • $ export PATH=/usr/local/Cellar/gettext/0.18.1.1/bin/:$PATH
      • $ make prefix=/usr/local/ install 
  4. Now you should now have the 'meld' command available.

Some useful links I went through to figure the above mentioned steps:
  • http://meld.sourceforge.net/
  • http://meld.sourceforge.net/install.html
  • http://www.mail-archive.com/pygtk@daa.com.au/msg20559.html