4343
4444import os
4545
46+
4647basedir = {
4748 'win32' : ['win32_static' ,],
48- 'linux2' : ['/usr/local' , '/usr' , ],
49+ 'linux2' : ['/usr/local' , '/usr' ],
4950 'linux' : ['/usr/local' , '/usr' ,],
5051 'cygwin' : ['/usr/local' , '/usr' ,],
5152 'darwin' : ['/sw/lib/freetype2' , '/sw/lib/freetype219' , '/usr/local' ,
@@ -170,6 +171,7 @@ def has_pkgconfig():
170171 if sys .platform == 'win32' :
171172 has_pkgconfig .cache = False
172173 else :
174+ #print 'environ', os.environ['PKG_CONFIG_PATH']
173175 status , output = commands .getstatusoutput ("pkg-config --help" )
174176 has_pkgconfig .cache = (status == 0 )
175177 return has_pkgconfig .cache
@@ -192,6 +194,9 @@ def get_pkgconfig(module,
192194
193195 status , output = commands .getstatusoutput (
194196 "%s %s %s" % (pkg_config_exec , flags , packages ))
197+ #if packages.startswith('pygtk'):
198+ # print 'status', status, output
199+ # raise SystemExit
195200 if status == 0 :
196201 for token in output .split ():
197202 attr = _flags .get (token [:2 ], None )
0 commit comments