[Distutils] WinNT and distutils
Thomas Heller
thomas.heller@ion-tof.com
Tue, 25 Jan 2000 08:33:42 +0100
[...]
> running build_ext
> cl.exe /nologo /Ox /MD -Id:\program files\python\include\python1.5
> -Id:\program files\python\include -IInclude /c /FoSrc/_numpymodule.obj
/TcSrc/_numpymodule.c
> Traceback (innermost last):
> File "setup.py", line 58, in ?
> ext_modules = [('_numpy',
> File "d:\program files\python\distutils\core.py", line 96, in setup
> dist.run_commands ()
> File "d:\program files\python\distutils\core.py", line 442, in
run_commands
> self.run_command (cmd)
> File "d:\program files\python\distutils\core.py", line 491, in
run_command
> cmd_obj.run ()
> File "d:\program files\python\distutils\command\build.py", line 52, in
run
> self.run_peer ('build_ext')
> File "d:\program files\python\distutils\core.py", line 802, in run_peer
> self.distribution.run_command (command)
> File "d:\program files\python\distutils\core.py", line 491, in
run_command
> cmd_obj.run ()
> File "d:\program files\python\distutils\command\build_ext.py", line 146,
in run
> self.build_extensions (self.extensions)
> File "d:\program files\python\distutils\command\build_ext.py", line 209,
in build_extensions
> include_dirs=include_dirs)
> File "D:\Program Files\Python\distutils\msvccompiler.py", line 103, in
compile
> self.spawn ([self.cc] + cc_args)
> File "D:\Program Files\Python\distutils\ccompiler.py", line 431, in
spawn
> spawn (cmd, verbose=self.verbose, dry_run=self.dry_run)
> File "D:\Program Files\Python\distutils\spawn.py", line 37, in spawn
> _spawn_nt (cmd, search_path, verbose, dry_run)
> File "D:\Program Files\Python\distutils\spawn.py", line 70, in _spawn_nt
> raise DistutilsExecError, \
> distutils.errors.DistutilsExecError: command 'cl.exe' failed: No such file
or directory
> C:\temp\Numerical-15.2>
>
> Is this a known problem? In the distutils test/ directory, I was able to
> successfully run every program except test_fgo.py and test_getopt.py
> (which gave ImportErrors on distutils.exceptions) and test_spawn.py (which
> crashed when looking for /bin/ls).
>
You have to make sure that the environment is set up for VC. Run the file
vcvars32.bat
in the Visual C bin directory.
Thomas Heller