[Pkg-e-commits] [SCM] Python bindings for Evas branch, upstream-vcs, updated. a2d7e40fb9fbbe948f479174a461f735a2f530fb

cmarcelo cmarcelo at alioth.debian.org
Sat May 24 16:31:57 UTC 2008


The following commit has been merged in the upstream-vcs branch:
commit b7d852682d774b625d264624410ed249d1e92d63
Author: cmarcelo <cmarcelo>
Date:   Wed Mar 26 21:14:12 2008 +0000

    Python-Efl: Better parsing of output from pkg-config in setup.py.
    
    Append everything that starts with "-Wl," into extra_link_args and
    other flags into extra_compile_args. Also prints the used flags for
    debugging purposes.

diff --git a/setup.py b/setup.py
index 065688b..b349bff 100644
--- a/setup.py
+++ b/setup.py
@@ -33,8 +33,16 @@ def pkgconfig(*packages, **kw):
         flag  = flag_map.get(token[:2], None)
         if flag is not None:
             kw.setdefault(flag, []).append(token[2:])
+        elif token.startswith("-Wl,"):
+            kw.setdefault("extra_link_args", []).append(token)
         else:
-            print "WARNING: Unknown pkg-config flag: %s" % token
+            kw.setdefault("extra_compile_args", []).append(token)
+
+    if "extra_link_args" in kw:
+        print "Using extra_link_args: %s" % " ".join(kw["extra_link_args"])
+    if "extra_compile_args" in kw:
+        print "Using extra_compile_args: %s" % " ".join(kw["extra_compile_args"])
+
     return kw
 
 

-- 
Python bindings for Evas



More information about the Pkg-e-commits mailing list