[Distutils] WinNT and distutils

Robin Becker robin@jessikat.demon.co.uk
Thu, 3 Feb 2000 17:32:14 +0000


In article <030701bf6e58$c4c670e0$4500a8c0@thomasnotebook>, Thomas
Heller <thomas.heller@ion-tof.com> writes
>Robin,
>
>I have extended your patch a little.
>If it works for you, we should submit it to Greg.
>
>The attached file (I have not mastered diff on NT yet)
>does the following:
>
>1. Try to find cl.exe and link.exe in the path. If this
>succeeds, it assumes everything is set up and starts the build.
>User in control!
>
>2. Then it reads the versions from the registry,
>starting with the highest one until it finds cl and link.
>For debugging, it also prints the version number it uses.
>
>3. If this also fails, DistutilError is raised.
>
>Thomas
>
>[ A MIME application / x-zip-compressed part was included here. ]
>

I've no problem with your version except that it may fail even though
the path is set up. If cl.exe & link.exe are on the path and properly
installed then they should findable via the registry. Even so Lib &
Include may not be set up and the compile will fail.

Searching the registry first won't fail provided it finds the best
version and the Lib/Include dirs haven't been hacked to death inside
devstudio.

Both search orders will fail under particular circumstances. Perhaps it
should try both in the manner of autoconf by attempting a trial compile.

I'm not serious really. I feel my original search has more chance of
success if things are 'properly' installed.
-- 
Robin Becker