Ned Deily added the comment:

I was able to reproduce the behavior you saw with an older Debian system.  The 
following patch to the apsw setup.py file seems to fix the problem:

--- apsw-3.8.7.1-r1/setup.py    2014-11-04 19:23:36.000000000 -0800
+++ apsw-3.8.7.1-r1_PATCHED/setup.py    2014-11-11 02:01:16.000000000 -0800
@@ -628,7 +628,7 @@
                 elif part.startswith("-D"):
                     part=part[2:]
                     if '=' in part:
-                        part=part.split('=', 1)
+                        part=tuple(part.split('=', 1))
                     else:
                         part=(part, '1')
                     ext.define_macros.append(part)

Also, requiring a tuple is the documented behavior of Distutils:

https://docs.python.org/2/distutils/apiref.html#distutils.core.Extension

I agree that the issue should be closed and am closing it.

----------
stage:  -> resolved
status: pending -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22846>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to