[Pkg-e-commits] [SCM] Python-DBus and Ecore integration using e_dbus branch, upstream-vcs, updated. a60947a925405901de75ce8bc7cb4c270bb14cca
cmarcelo
cmarcelo at alioth.debian.org
Sat May 24 16:35:44 UTC 2008
The following commit has been merged in the upstream-vcs branch:
commit a60947a925405901de75ce8bc7cb4c270bb14cca
Author: cmarcelo <cmarcelo>
Date: Wed Mar 26 21:14:11 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 bbd320e..1b2af75 100644
--- a/setup.py
+++ b/setup.py
@@ -29,8 +29,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-DBus and Ecore integration using e_dbus
More information about the Pkg-e-commits
mailing list