from distutils.core import setup, Extension
from popen2 import popen2

pc = "glib-2.0 gobject-2.0 pygobject-2.0"
output = lambda s: ''.join(popen2(s)[0].readlines()).strip()
module1 = Extension('gva', 
		 sources=['gvamodule.c'], 
		 extra_compile_args=output("pkg-config --cflags " + pc).split(),
		 extra_link_args=output("pkg-config --libs " + pc).split())

setup (name='Gva', version='0', description='Blah', ext_modules=[module1])
