[Python-Dev] msvccompiler.py: some remarks
"Martin v. Löwis"
martin at v.loewis.de
Thu Jun 29 21:47:55 CEST 2006
Jeroen Ruigrok van der Werven wrote:
> I am testing/working on some Python code on Windows.
> During this I encounter some issues where I am being told I don't have
> the .Net SDK installed. So I started investigating this issue and came
> to http://www.vrplumber.com/programming/mstoolkit/index.html
We should remove/change this comment. It is utterly misleading.
> 1) If MSSdk is set it does not automatically mean that cl.exe and the
> rest are available. With the latest SDKs, Windows 2003 R2 at least,
> the bin directory contains no compilers, linkers or the like. On the
> other hand, it is perfectly valid to set MSSdk to your Platform SDK
> installation directory. So this is unfortunately a problematic
> solution as introduced in revision 42515.
I meant to leave this as a per-shell choice. If you set MSSdk, you
indicate that the environment you created is "right", and distutils
should not second-guess you. This is problematic if the user did
"register environment variables" when installing the SDK, so I plan
to change this to look for a different environment variable (in
> 2) As far as I have been able to determine .Net 2.0 uses
> sdkInstallRootv2.0. Also it installs by default under C:\Program
> Files\Microsoft Visual Studio 8\SDK\v2.0\
Forget about Visual Studio 8 and .NET 2.0. It won't help here.
> 3) The Windows 2003 R2 Platform SDK uses
> which in turn has a entry for 'Install Dir' which lists the
> installation directory for the Platform SDK.
Correct. This helps for Itanium and AMD64 extension modules.
> So basically a bunch of logic needs to be rewritten for newer version
> support and I will investigate this.
No. The checks are all fine.
More information about the Python-Dev