installing numpy

Robert Kern robert.kern at gmail.com
Thu May 11 00:12:17 CEST 2006


Gary Wessle wrote:
> thanks
> I followed your suggestions, it built the package ok, while it was
> building, I noticed lots of lines going by the screen in groups of
> different colors, white, yellow, red.
> the red got my attention: 
> 
> ****************
> Could not locate executable gfortran
> Could not locate executable f95
> ****************

Don't worry about those. numpy does not require a Fortran compiler to build.
Some projects using numpy.distutils, like scipy, will. The information flow in
distutils is not ideal, so the checks are done regardless of whether you need
Fortran or not.

> is there a way to find out if the built is fine and it is using the
> high performance libraries?

You can use the ldd(1) program on the extension modules (they're the ones with
the .so extension) to see what libraries they link against.

To run all of the unit tests:

[~]$ python
Python 2.4.1 (#2, Mar 31 2005, 00:05:10)
[GCC 3.3 20030304 (Apple Computer, Inc. build 1666)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> numpy.test()
  Found 5 tests for numpy.distutils.misc_util
  Found 3 tests for numpy.lib.getlimits
  Found 30 tests for numpy.core.numerictypes
  Found 13 tests for numpy.core.umath
  Found 8 tests for numpy.lib.arraysetops
  Found 42 tests for numpy.lib.type_check
  Found 93 tests for numpy.core.multiarray
  Found 3 tests for numpy.dft.helper
  Found 36 tests for numpy.core.ma
  Found 9 tests for numpy.lib.twodim_base
  Found 2 tests for numpy.core.oldnumeric
  Found 8 tests for numpy.core.defmatrix
  Found 1 tests for numpy.lib.ufunclike
  Found 34 tests for numpy.lib.function_base
  Found 1 tests for numpy.lib.polynomial
  Found 6 tests for numpy.core.records
  Found 19 tests for numpy.core.numeric
  Found 4 tests for numpy.lib.index_tricks
  Found 46 tests for numpy.lib.shape_base
  Found 0 tests for __main__
...........................................................................................................................................................................................................................................................................................................................................................................
----------------------------------------------------------------------
Ran 363 tests in 2.812s

OK
<unittest.TextTestRunner object at 0x15a2f50>
>>>

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
  -- Umberto Eco




More information about the Python-list mailing list