This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ned.deily
Recipients dstufft, eric.araujo, lemburg, mark, ncoghlan, ned.deily, pitrou
Date 2014-11-11.10:10:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1415700612.22.0.212116875031.issue22846@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-11-11 10:10:12ned.deilysetrecipients: + ned.deily, lemburg, ncoghlan, pitrou, mark, eric.araujo, dstufft
2014-11-11 10:10:12ned.deilysetmessageid: <1415700612.22.0.212116875031.issue22846@psf.upfronthosting.co.za>
2014-11-11 10:10:12ned.deilylinkissue22846 messages
2014-11-11 10:10:12ned.deilycreate