@@ -240,26 +240,25 @@ def check_for_freetype():
240240 for d in basedirs :
241241 module .include_dirs .append (os .path .join (d , 'freetype2' ))
242242
243+ print_status ("freetype2" , get_pkgconfig_version ('freetype2' ))
243244 if not find_include_file (module .include_dirs , 'ft2build.h' ):
244245 print_message (
245- "Could not find 'freetype2' headers in any of %s" %
246+ "WARNING: Could not find 'freetype2' headers in any of %s. " %
246247 ", " .join (["'%s'" % x for x in module .include_dirs ]))
247- return False
248248
249- print_status ("freetype2" , get_pkgconfig_version ('freetype2' ))
250249 return True
251250
252251def check_for_libpng ():
253252 module = Extension ("test" , [])
254253 get_pkgconfig (module , 'libpng' )
255254 add_base_flags (module )
255+
256+ print_status ("libpng" , get_pkgconfig_version ('libpng' ))
256257 if not find_include_file (module .include_dirs , 'png.h' ):
257258 print_message (
258- ", " .join ("Could not find 'libpng' headers in any of %s" %
259- ["'%s'" % x for x in module .include_dirs ]))
260- return False
259+ "Could not find 'libpng' headers in any of %s" %
260+ ", " .join (["'%s'" % x for x in module .include_dirs ]))
261261
262- print_status ("libpng" , get_pkgconfig_version ('libpng' ))
263262 return True
264263
265264def add_base_flags (module ):
@@ -323,11 +322,10 @@ def check_for_numpy():
323322 module = Extension ('test' , [])
324323 add_numpy_flags (module )
325324 add_base_flags (module )
325+
326+ print_status ("numpy" , numpy .__version__ )
326327 if not find_include_file (module .include_dirs , os .path .join ("numpy" , "arrayobject.h" )):
327- print_status ("numpy" , "no" )
328328 print_message ("Could not find the headers for numpy. You may need to install the development package." )
329- return False
330- print_status ("numpy" , numpy .__version__ )
331329 return True
332330
333331def add_numpy_flags (module ):
@@ -408,7 +406,6 @@ def check_for_gtk():
408406 explanation = (
409407 "Could not find Gtk+ headers in any of %s" %
410408 ", " .join (["'%s'" % x for x in module .include_dirs ]))
411- gotit = False
412409
413410 def ver2str (tup ):
414411 return "." .join ([str (x ) for x in tup ])
@@ -424,8 +421,10 @@ def ver2str(tup):
424421 ver2str (gtk .pygtk_version ), pygobject_version ))
425422 else :
426423 print_status ("Gtk+" , "no" )
424+
425+ if explanation is not None :
427426 print_message (explanation )
428-
427+
429428 return gotit
430429
431430def add_pygtk_flags (module ):
@@ -529,7 +528,6 @@ def check_for_wx():
529528 os .path .join ("wx" , "wxPython" , "wxPython.h" )):
530529 explanation = ("Could not find wxPython headers in any of %s" %
531530 ", " .join (["'%s'" % x for x in module .include_dirs ]))
532- gotit = False
533531
534532 if gotit :
535533 print_status ("wxPython" , wx .__version__ )
@@ -663,7 +661,6 @@ def check_for_tk():
663661 gotit = False
664662 if not find_include_file (module .include_dirs , "tk.h" ):
665663 explanation = 'Tkinter present, but header files are not installed. You may need to install development packages.'
666- gotit = False
667664
668665 if gotit :
669666 print_status ("Tkinter" , "Tkinter: %s, Tk: %s, Tcl: %s" %
0 commit comments