How about:
for pkg in supp_png_pkgs: try: ctx.check_cfg(package=pkg, uselib_store='libpng', args = ['--cflags', '--libs']) except: pass else: have_png = True break
This way we only check for the package once (and get saner config output).
How about:
for pkg in supp_png_pkgs:
ctx. check_cfg( package= pkg, uselib_ store=' libpng' , args = ['--cflags', '--libs'])
have_ png = True
try:
except:
pass
else:
break
This way we only check for the package once (and get saner config output).