Skip to content
This repository has been archived by the owner on Mar 22, 2018. It is now read-only.

Commit

Permalink
install pygtk, pycairo and gobject in virtual environment
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario Frasca committed Jan 3, 2015
1 parent 3cc9cb8 commit 3f552bc
Showing 1 changed file with 33 additions and 3 deletions.
36 changes: 33 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,40 @@
language: python

python:
- "2.6"
- "2.7"

before_install:
- sudo apt-get install python-gtk2 libpango1.0-0
# Environment setup
- export VIRT_ROOT=/home/travis/virtualenv/python$TRAVIS_PYTHON_VERSION
- export PKG_CONFIG_PATH=$VIRT_ROOT/lib/pkgconfig
# PyCairo
- wget http://www.cairographics.org/releases/py2cairo-1.10.0.tar.bz2
- tar xf py2cairo-1.10.0.tar.bz2
- cd py2cairo-1.10.0
- ./waf configure --prefix=$VIRT_ROOT > /dev/null
- ./waf build > /dev/null
- ./waf install > /dev/null
- cd ..
# PyGobject
- wget 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=$VIRT_ROOT --disable-introspection > /dev/null
- make > /dev/null
- make install > /dev/null
- cd ..
# PyGtk
- wget 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=$VIRT_ROOT > /dev/null
- make > /dev/null
- make install > /dev/null
- cd ..
# build before install
- python setup.py -q build

install: python setup.py -q install
# command to run tests, e.g. python setup.py test
script: python setup.py test

script: python setup.py test

0 comments on commit 3f552bc

Please sign in to comment.