[Distutils] Problem compiling Extensions on Win32
theller at python.net
Fri Feb 6 06:05:10 EST 2004
"G D" <garth at utmail.to> writes:
> On February 4, 2004, Thomas Heller wrote:
>> We just had this issue - distutils doesn't pick up the usual environment
>> variables. It only reads from the registry. Look into the sources for
>> distutils/msvccompiler.py. On my machine, the directories are in the
>> registry as values of the key
>> HKEY_CURRENT_USER\Software\Microsoft\DevStudio\6.0\Build System\Components\Platforms\Win32 (x86)\Directories
>> Is this key present on your machine, and has it 'Include Dirs', 'Library
>> Dirs', and 'Path Dirs' values?
> You were correct, having installed VC6 only to compile this module
> from the commandline I hadn't even opened up the VisualStudio... It
> appears the only thing in the registry is
> System\Components\Platforms\Win32 (x86)\Tools" before you open
> VisualStudio. Once open the registry fills with everything accept
> Directories which appear in the registry on closing VisualStudio.
Python 2.3.3 (but not 2.3.2 or earlier) should have displayed a warning
when it finds these incomplete registry entries:
self.warn("It seems you have Visual Studio 6 installed, "
"but the expected registry settings are not present.\n"
"You must at least run the Visual Studio GUI once "
"so that these entries are created.")
> Adding my Includes in VisualStudio, I was able to get through the
> first couple of modules without problem, it died later on when the
> copiler was passed a -Wall parameter (a bug perhaps?):
distutils doesn't pass -Wall to the MSVC compiler. A bug in the setup script?
More information about the Distutils-SIG