[Distutils] MSVC CRT woes
Thomas Heller
theller at python.net
Fri Feb 20 12:59:25 EST 2004
"M.-A. Lemburg" <mal at egenix.com> writes:
> Thomas Heller wrote:
>> "M.-A. Lemburg" <mal at egenix.com> writes:
>>
>>>That said, I think that including two wininst versions, one
>>>compiled with VC6, the other with VC7, would solve this problem
>>>nicely. You'd still have to have VC6/7 for compiling C extensions,
>>>but at least generating pure Python distutils wininst packages
>>>would remain possible.
>> I'm currently working on this.
>> distutils.msvccompiler.get_build_version() returns the MSVC version
>> number as float, so I would suggest we name the wininst.exe according to
>> this schema
>> "wininst-%s.exe" % msvccompiler.get_build_version()
>> wininst-6.0.exe and wininst-7.1.exe binaries would be provided with
>> python (and distutils, if this is distributed separately again).
>
> Sounds right to me.
Just for the record: get_build_version() returns the integer '6' for
VC6, and the float '7.1' for VC7.1, so the filenames will be
'wininst-6.exe' and 'wininst-7.1.exe'.
Thomas
More information about the Distutils-SIG
mailing list