Enlightenment CVS committal Author : barbieri Project : e17 Module : proto/python-efl
Dir : e17/proto/python-efl/python-epsilon Modified Files: setup.py Log Message: Support -D in pkg-config flags, avoid failing on unknown flags. Thanks to Vincent (caro) for reporting. =================================================================== RCS file: /cvs/e/e17/proto/python-efl/python-epsilon/setup.py,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- setup.py 5 Nov 2007 22:10:24 -0000 1.2 +++ setup.py 29 Jan 2008 15:47:32 -0000 1.3 @@ -11,7 +11,8 @@ def pkgconfig(*packages, **kw): - flag_map = {'-I': 'include_dirs', '-L': 'library_dirs', '-l': 'libraries'} + flag_map = {'-I': 'include_dirs', '-L': 'library_dirs', '-l': 'libraries', + '-D': 'prepro_vars'} pkgs = ' '.join(packages) cmdline = 'pkg-config --libs --cflags %s' % pkgs @@ -20,7 +21,11 @@ raise ValueError("could not find pkg-config module: %s" % pkgs) for token in output.split(): - kw.setdefault(flag_map.get(token[:2]), []).append(token[2:]) + flag = flag_map.get(token[:2], None) + if flag is not None: + kw.setdefault(flag, []).append(token[2:]) + else: + print "WARNING: Unknown pkg-config flag: %s" % token return kw ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs