Follow-up Comment #2, bug #19119 (project mypaint):

Well, the exception handling in this patch is a bit unusual. Why assign -1 to
idx, if idx is not used afterwards?

If you can test it, I would suggest to use the code below instead:


     env.ParseConfig('python-config --cflags')
-    env.ParseConfig('python-config --ldflags')
+    ldflags = env.backtick(python + '-config --ldflags').split()
+    if '-u' in ldflags:
+        idx = ldflags.index('-u')
+        env.Append(LINKFLAGS=ldflags[idx:])
+        del ldflags[idx:]
+    env.MergeFlags(' '.join(ldflags))
 else:
     # some distros use python2.5-config, others python-config2.5


    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?19119>

_______________________________________________
  Nachricht geschickt von/durch Gna!
  http://gna.org/


_______________________________________________
Mypaint-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/mypaint-bugs

Reply via email to