Travis Oliphant wrote:
If you don't care about using "vendor-specific math libraries" then it's
as easy as
python setup.py install
on linux and aix (it's also that easy on Windows if you have the right
compiler and/or configuration file set up).
If you care about vendor specific libraries, then you have to either put
them in a "known" place or write a site.cfg file. (We should document
where the "known" places are...)
The installation process uses distutils and so information about
distutils that you can glean from other places is also relevant.
Ask on the mailing list for more specifics.
Ok, here goes ;-)
First of all, when installing on windows-x86 using msvc7.1 and
python-2.5, the build of numpy crashes because it was looking for
python25.lib and was looking in the lib directory of the python
installation. However, I compiled python-2.5 using the solution-file
that comes with it and this one generated the python25.lib file in the
pcbuild subdirectory (and does not copy it to the lib directory). After
copying it manually, the build worked.
However when trying to use vendor specific libraries, I run into
trouble. First of all, on linux-x86 I think I have set it up right but
how do I verify this? I have the same problem as mentioned in:
http://projects.scipy.org/pipermail/numpy-discussion/2007-February/026130.html
I also found numpy.__config__.show() but this does not show any tuned
lapack library although I had one in my site.cfg. Any ideas ?
Thanks in advance,
Toon
F2PY Version 2_3473
blas_opt_info:
blas_mkl_info:
libraries mkl,vml,guide not found in C:\fft\external\python-2.5\lib
libraries mkl,vml,guide not found in C:\
NOT AVAILABLE
atlas_blas_threads_info:
Setting PTATLAS=ATLAS
libraries ptf77blas,ptcblas,atlas not found in C:\fft\external\python-2.5\lib
libraries ptf77blas,ptcblas,atlas not found in C:\
NOT AVAILABLE
atlas_blas_info:
libraries f77blas,cblas,atlas not found in C:\fft\external\python-2.5\lib
libraries f77blas,cblas,atlas not found in C:\
NOT AVAILABLE
blas_info:
libraries blas not found in C:\fft\external\python-2.5\lib
libraries blas not found in C:\
NOT AVAILABLE
blas_src_info:
NOT AVAILABLE
NOT AVAILABLE
lapack_opt_info:
lapack_mkl_info:
mkl_info:
libraries mkl,vml,guide not found in C:\fft\external\python-2.5\lib
libraries mkl,vml,guide not found in C:\
NOT AVAILABLE
NOT AVAILABLE
atlas_threads_info:
Setting PTATLAS=ATLAS
libraries ptf77blas,ptcblas,atlas not found in C:\fft\external\python-2.5\lib
libraries lapack_atlas not found in C:\fft\external\python-2.5\lib
libraries ptf77blas,ptcblas,atlas not found in C:\
libraries lapack_atlas not found in C:\
numpy.distutils.system_info.atlas_threads_info
NOT AVAILABLE
atlas_info:
libraries f77blas,cblas,atlas not found in C:\fft\external\python-2.5\lib
libraries lapack_atlas not found in C:\fft\external\python-2.5\lib
libraries f77blas,cblas,atlas not found in C:\
libraries lapack_atlas not found in C:\
numpy.distutils.system_info.atlas_info
NOT AVAILABLE
lapack_info:
libraries lapack not found in C:\fft\external\python-2.5\lib
libraries lapack not found in C:\
NOT AVAILABLE
lapack_src_info:
NOT AVAILABLE
NOT AVAILABLE
running build
running config_fc
running build_src
building py_modules sources
creating build
creating build\src.win32-2.5
creating build\src.win32-2.5\numpy
creating build\src.win32-2.5\numpy\distutils
building extension "numpy.core.multiarray" sources
creating build\src.win32-2.5\numpy\core
Generating build\src.win32-2.5\numpy\core\config.h
No module named msvccompiler in numpy.distutils, trying from distutils..
0
1
Could not locate executable g77
Could not locate executable f77
Could not locate executable gfortran
Could not locate executable f95
customize GnuFCompiler
Could not locate executable f77
Executable f77 does not exist
Running from numpy source directory.
C:\fft\external\numpy-1.0.1\numpy\distutils\system_info.py:1301: UserWarning:
Atlas (http://math-atlas.sourceforge.net/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [atlas]) or by setting
the ATLAS environment variable.
warnings.warn(AtlasNotFoundError.__doc__)
C:\fft\external\numpy-1.0.1\numpy\distutils\system_info.py:1310: UserWarning:
Blas (http://www.netlib.org/blas/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [blas]) or by setting
the BLAS environment variable.
warnings.warn(BlasNotFoundError.__doc__)
C:\fft\external\numpy-1.0.1\numpy\distutils\system_info.py:1313: UserWarning:
Blas (http://www.netlib.org/blas/) sources not found.
Directories to search for the sources can be specified in the
numpy/distutils/site.cfg file (section [blas_src]) or by setting
the BLAS_SRC environment variable.
warnings.warn(BlasSrcNotFoundError.__doc__)
C:\fft\external\numpy-1.0.1\numpy\distutils\system_info.py:1210: UserWarning:
Atlas (http://math-atlas.sourceforge.net/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [atlas]) or by setting
the ATLAS environment variable.
warnings.warn(AtlasNotFoundError.__doc__)
C:\fft\external\numpy-1.0.1\numpy\distutils\system_info.py:1221: UserWarning:
Lapack (http://www.netlib.org/lapack/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [lapack]) or by setting
the LAPACK environment variable.
warnings.warn(LapackNotFoundError.__doc__)
C:\fft\external\numpy-1.0.1\numpy\distutils\system_info.py:1224: UserWarning:
Lapack (http://www.netlib.org/lapack/) sources not found.
Directories to search for the sources can be specified in the
numpy/distutils/site.cfg file (section [lapack_src]) or by setting
the LAPACK_SRC environment variable.
warnings.warn(LapackSrcNotFoundError.__doc__)
Could not locate executable f77
Executable f77 does not exist
Could not locate executable f77
Executable f77 does not exist
Non-ASCII character '\xa0' in file
C:\fft\external\numpy-1.0.1\numpy\distutils\fcompiler\intel.py on line 82, but
no encoding declared; see http://www.python.org/peps/pep-0263.html for details
(intel.py, line 82)
customize AbsoftFCompiler
customize CompaqVisualFCompiler
Non-ASCII character '\xa0' in file
C:\fft\external\numpy-1.0.1\numpy\distutils\fcompiler\intel.py on line 82, but
no encoding declared; see http://www.python.org/peps/pep-0263.html for details
(intel.py, line 82)
customize Gnu95FCompiler
Could not locate executable f95
Executable f95 does not exist
Could not locate executable f95
Executable f95 does not exist
Could not locate executable f95
Executable f95 does not exist
customize G95FCompiler
Could not locate executable g95
Executable g95 does not exist
customize GnuFCompiler
Could not locate executable f77
Executable f77 does not exist
Could not locate executable f77
Executable f77 does not exist
Could not locate executable f77
Executable f77 does not exist
customize Gnu95FCompiler
Could not locate executable f95
Executable f95 does not exist
Could not locate executable f95
Executable f95 does not exist
Could not locate executable f95
Executable f95 does not exist
customize GnuFCompiler
Could not locate executable f77
Executable f77 does not exist
Could not locate executable f77
Executable f77 does not exist
Could not locate executable f77
Executable f77 does not exist
customize GnuFCompiler using config
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo
/Ox /MD /W3 /GX /DNDEBUG -IC:\fft\external\python-2.5\include -Inumpy\core\src
-Inumpy\core\include -IC:\fft\external\python-2.5\include
-IC:\fft\external\python-2.5\PC /Tc_configtest.c /Fo_configtest.obj
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\link.exe /nologo
/INCREMENTAL:NO /LIBPATH:C:\fft\external\python-2.5\lib /LIBPATH:C:\
_configtest.obj /OUT:_configtest.exe
LINK : fatal error LNK1104: cannot open file 'python25.lib'
failure.
removing: _configtest.c _configtest.obj
numpy\core\setup.py:50: DeprecationWarning: raising a string exception is
deprecated
raise "ERROR: Failed to test configuration"
Traceback (most recent call last):
File "setup.py", line 89, in <module>
setup_package()
File "setup.py", line 82, in setup_package
configuration=configuration )
File "C:\fft\external\numpy-1.0.1\numpy\distutils\core.py", line 174, in setup
return old_setup(**new_attr)
File "C:\fft\external\python-2.5\lib\distutils\core.py", line 151, in setup
dist.run_commands()
File "C:\fft\external\python-2.5\lib\distutils\dist.py", line 974, in
run_commands
self.run_command(cmd)
File "C:\fft\external\python-2.5\lib\distutils\dist.py", line 994, in
run_command
cmd_obj.run()
File "C:\fft\external\python-2.5\lib\distutils\command\build.py", line 112,
in run
self.run_command(cmd_name)
File "C:\fft\external\python-2.5\lib\distutils\cmd.py", line 333, in
run_command
self.distribution.run_command(command)
File "C:\fft\external\python-2.5\lib\distutils\dist.py", line 994, in
run_command
cmd_obj.run()
File "C:\fft\external\numpy-1.0.1\numpy\distutils\command\build_src.py", line
87, in run
self.build_sources()
File "C:\fft\external\numpy-1.0.1\numpy\distutils\command\build_src.py", line
106, in build_sources
self.build_extension_sources(ext)
File "C:\fft\external\numpy-1.0.1\numpy\distutils\command\build_src.py", line
212, in build_extension_sources
sources = self.generate_sources(sources, ext)
File "C:\fft\external\numpy-1.0.1\numpy\distutils\command\build_src.py", line
270, in generate_sources
source = func(extension, build_dir)
File "numpy\core\setup.py", line 50, in generate_config_h
raise "ERROR: Failed to test configuration"
ERROR: Failed to test configuration
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion