[Distutils] WinNT and distutils

Gary Strangman strang@NMR.MGH.Harvard.EDU
Mon, 24 Jan 2000 19:56:56 -0500 (EST)

Hello all,

I'm brand new to distutils, but wanted to install the newest numpy on my
WinNT machine to try out some recent array-casting enhancements. 
Downloading distutils-20000117.tar.gz and installing with "python setup.py
install" seemed to go fine.  Then I downloaded Numerical-15.2.tar.gz from
sourceforge and got the following ... 

C:\temp\Numerical-15.2> python setup.py build install
running build
running build_py
not copying Lib\ArrayPrinter.py (output up-to-date)    <=== 2nd run of above,
not copying Lib\FFT.py (output up-to-date)             <=== 1st run did copy
not copying Lib\LinearAlgebra.py (output up-to-date)
not copying Lib\MLab.py (output up-to-date)
not copying Lib\Matrix.py (output up-to-date)
not copying Lib\Numeric.py (output up-to-date)
not copying Lib\Precision.py (output up-to-date)
not copying Lib\RandomArray.py (output up-to-date)
not copying Lib\UserArray.py (output up-to-date)
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
  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

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). 

Any assistance would be most gratefully accepted (please copy any replies
to my email address).