[Python-Dev] mingw support?

Steve Holden steve at holdenweb.com
Mon Aug 9 23:52:09 CEST 2010


On 8/9/2010 5:37 PM, "Martin v. Löwis" wrote:
> Am 09.08.2010 23:00, schrieb Steve Holden:
>> On 8/9/2010 2:47 PM, Sturla Molden wrote:
>>>> Terry Reedy:
>> [...]
>>>
>>> Python's distutils do not work with the SDK compiler, only Visual Studio.
>>> Building Python extensions with the SDK compiler is not as easy as it
>>> could (or should) be.
>>>
>> At one point Mike Fletcher published a patch to make distutils use the
>> SDK compiler. It would make a lot of sense if it were built in to
>> distutils as a further compiler choice.
> 
> Please understand that this very choice is there already.
> 
That's great. Is that what the documentation refers to when it says

"""
MSVCCompiler will normally choose the right compiler, linker etc. on its
own. To override this choice, the environment variables
DISTUTILS_USE_SDK and MSSdk must be both set. MSSdk indicates that the
current environment has been setup by the SDK’s SetEnv.Cmd script, or
that the environment variables had been registered when the SDK was
installed; DISTUTILS_USE_SDK indicates that the distutils user has made
an explicit choice to override the compiler selection by MSVCCompiler.
"""

That isn't particularly clear to me, but it may be to others more
familiar with building on Windows.

regards
 Steve
-- 
Steve Holden           +1 571 484 6266   +1 800 494 3119
DjangoCon US September 7-9, 2010    http://djangocon.us/
See Python Video!       http://python.mirocommunity.org/
Holden Web LLC                 http://www.holdenweb.com/


More information about the Python-Dev mailing list