-
-
Save hysia/eafb0867a685525d43c0 to your computer and use it in GitHub Desktop.
Revisions
-
ches revised this gist
Jul 20, 2011 . 2 changed files with 7 additions and 0 deletions.There are no files selected for viewing
File renamed without changes.This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ #!/bin/sh # ~/bin/openxenmanager source ~/.virtualenvs/pygtk/bin/activate cd $HOME/src/python/openxenmanager python window.py deactivate -
ches revised this gist
Jul 20, 2011 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -17,7 +17,7 @@ workon pygtk # NOTE: pycairo uses a nonstandard build system, the autotools approach is # officially unsupported. I couldn't get the latest version (1.10.0 at time of # writing) to work with either approach, so I punted and used autotools here # with the next-most-recent version. curl -O http://cairographics.org/releases/py2cairo-1.8.10.tar.gz tar xzf py2cairo-1.8.10.tar.gz && cd py2cairo-1.8.10 @@ -28,12 +28,14 @@ make install # pygobject # introspection no worky: https://github.com/mxcl/homebrew/pull/4353 curl -O http://ftp.gnome.org/pub/GNOME/sources/pygobject/2.28/pygobject-2.28.6.tar.bz2 tar xf pygobject-2.28.6.tar.bz2 && cd pygobject-2.28.6 ./configure --prefix=$VIRTUAL_ENV --disable-introspection make make install # pygtk curl -O http://ftp.gnome.org/pub/GNOME/sources/pygtk/2.24/pygtk-2.24.0.tar.bz2 tar xf pygtk-2.24.0.tar.bz2 && cd pygtk-2.24.0 ./configure --prefix=$VIRTUAL_ENV PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$VIRTUAL_ENV/lib/pkgconfig make # moar coffee nao make install -
ches created this gist
Jul 20, 2011 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,45 @@ # This LOOKS pretty straightforward, but it took awhile to sort out issues with # py2cairo and pygobject, so I hope I've saved you some time :-) # # This assumes you already subscribe to a nice clean virtualenvwrapper workflow # -- see https://gist.github.com/771394 if you need advice on getting there. # There are some optional dependencies omitted, so if you're going to be doing # heavy development with these libs, you may want to look into them. # # We go to some configure option pains to avoid polluting the system-level # Python, and `brew link`ing Cairo which is keg-only by default. brew install cairo && brew install gtk+ # Have a coffee. Better yet, a meal. mkvirtualenv --no-site-packages pygtk workon pygtk # NOTE: pycairo uses a nonstandard build system, the autotools approach is # officially unsupported. I couldn't get the latest version (1.10.0 at time of # writing to work with either approach, so I punted and used autotools here # with the next-most-recent version. curl -O http://cairographics.org/releases/py2cairo-1.8.10.tar.gz tar xzf py2cairo-1.8.10.tar.gz && cd py2cairo-1.8.10 ./configure --prefix=$VIRTUAL_ENV PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/local/Cellar/cairo/1.10.2/lib/pkgconfig make make install # pygobject # introspection no worky: https://github.com/mxcl/homebrew/pull/4353 curl -O http://ftp.gnome.org/pub/GNOME/sources/pygobject/2.28/pygobject-2.28.6.tar.bz2 ./configure --prefix=$VIRTUAL_ENV --disable-introspection make make install # pygtk curl -O http://ftp.gnome.org/pub/GNOME/sources/pygtk/2.24/pygtk-2.24.0.tar.bz2 ./configure --prefix=$VIRTUAL_ENV PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$VIRTUAL_ENV/lib/pkgconfig make # moar coffee nao make install # There's a short test script you can run from the REPL here, if you want to # verify that things are working: # # http://faq.pygtk.org/index.py?file=faq21.001.htp&req=show #