[issue22846] distutils needlessly fails to build apsw

2014-11-11 Thread Mark Summerfield
New submission from Mark Summerfield: When I try to build APSW (http://rogerbinns.github.io/apsw/index.html) with Python 3.3 or 3.4 on Debian stable 64-bit I get the error output shown below. I dug into the source and it seems that the problem is that distutils/ccompiler.py's

[issue22846] distutils needlessly fails to build apsw

2014-11-11 Thread Ned Deily
Ned Deily added the comment: Have you reported this problem to the author of apsw? It seems like figuring out why apsw is apparently creating an incorrect setup.py configuration should be a first step before suggesting a change to Distutils. You might want to supply the values from your

[issue22846] distutils needlessly fails to build apsw

2014-11-11 Thread Ned Deily
Ned Deily added the comment: Another data point: apsw appears to build OK on OS X with a MacPorts-supplied icu, including icu-config. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22846

[issue22846] distutils needlessly fails to build apsw

2014-11-11 Thread Mark Summerfield
Mark Summerfield added the comment: The first person I asked was the author of APSW (Roger Binns). He told me: The ultimate cause of that is some interaction with the compilation environment. Some sort of CFLAGS is ultimately ending up in some Python code like above when it should be [

[issue22846] distutils needlessly fails to build apsw

2014-11-11 Thread Mark Summerfield
Mark Summerfield added the comment: Here are the flags you asked for: $ icu-config --cppflags -D_FORTIFY_SOURCE=2 -D_REENTRANT -I/usr/include $ icu-config --ldflags -Wl,-z,relro -ldl -lm -L/usr/lib/x86_64-linux-gnu -licui18n -licuuc -licudata -ldl -lm --

[issue22846] distutils needlessly fails to build apsw

2014-11-11 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Shouldn't this be fixed in the APSW setup.py ? The patch is you are proposing looks harmless, but it can also mask programming errors in setup.py. -- nosy: +lemburg ___ Python tracker rep...@bugs.python.org

[issue22846] distutils needlessly fails to build apsw

2014-11-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: The ultimate cause of that is some interaction with the compilation environment. Some sort of CFLAGS is ultimately ending up in some Python code like above when it should be [ ('_FORTIFY_SOURCE', '2') ]. Note this is not part of the APSW source - it is

[issue22846] distutils needlessly fails to build apsw

2014-11-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: I suggest closing. -- nosy: +ncoghlan resolution: - not a bug status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22846 ___

[issue22846] distutils needlessly fails to build apsw

2014-11-11 Thread Ned Deily
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.py2014-11-04 19:23:36.0 -0800 +++ apsw-3.8.7.1-r1_PATCHED/setup.py2014-11-11

[issue22846] distutils needlessly fails to build apsw

2014-11-11 Thread Mark Summerfield
Mark Summerfield added the comment: I've notified APSW's author and I'm sure he'll fix it. Thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22846 ___