Re: [Python-3000] Windows: debug mode

2008-02-18 Thread Martin v. Löwis
>> Is there a way to make distutils do this for me with a simple command- >> line switch? > > Yes - provide a patch :) > >> 2) Add the same compilation mode to Python itself, so that users can >> easily compile a Python DLL which has debug symbols but with the release >> ABI (since stepping int

Re: [Python-3000] Windows: debug mode

2008-02-17 Thread Christian Heimes
Giovanni Bajo wrote: > Yes, I know it changes the ABI, and I know it must say as it is. I > believe that Py_DEBUG is mostly useful to core developers and not much to > extension developer or regular Python developers, but it's immaterial in > this discussion. Py_DEBUG builds are useful to exten

Re: [Python-3000] Windows: debug mode

2008-02-17 Thread Giovanni Bajo
On Sun, 17 Feb 2008 18:19:30 +0100, Martin v. Löwis wrote: >> Thus, I'm hereby proposing that we change this in Py3k so that Python's >> debug mode does not mandate any ABI change anymore. > > It seems people still debate what it is that you *actually* want. Yes, sorry for the confusion. > Th

Re: [Python-3000] Windows: debug mode

2008-02-17 Thread Martin v. Löwis
> Thus, I'm hereby proposing that we change this in Py3k so that Python's > debug mode does not mandate any ABI change anymore. It seems people still debate what it is that you *actually* want. This sentence suggests Christian's interpretation, i.e. you might be unaware that the debug mode not on

Re: [Python-3000] Windows: debug mode

2008-02-17 Thread Christian Heimes
Phillip J. Eby wrote: > Actually, I think Giovanni simply wants to be able to build extension > modules with debugging information, *without* needing to use a Py_DEBUG build. > > That is, this is about using debug extensions with a release Python, > not the other way 'round. And if I understand

Re: [Python-3000] Windows: debug mode

2008-02-17 Thread Phillip J. Eby
At 03:23 PM 2/17/2008 +0100, Christian Heimes wrote: >Giovanni Bajo wrote: > > Python's debug mode under Windows mandates an ABI change: the debug > > version of dynamic libraries (_d) are linked against the CRT debug > > runtime, which is not ABI-compatible to the release runtime. So you > > eithe

Re: [Python-3000] Windows: debug mode

2008-02-17 Thread Christian Heimes
Giovanni Bajo wrote: > Python's debug mode under Windows mandates an ABI change: the debug > version of dynamic libraries (_d) are linked against the CRT debug > runtime, which is not ABI-compatible to the release runtime. So you > either have the _d version of all the extensions you need or you

[Python-3000] Windows: debug mode

2008-02-17 Thread Giovanni Bajo
Hi, an issue related to the CRT removal/reduced usage under Windows is that of debug mode, which I stand that it is mostly useless as it is currently implemented. Python's debug mode under Windows mandates an ABI change: the debug version of dynamic libraries (_d) are linked against the CRT de