Ceci est une ancienne révision du document !
numpy
Installation
se logger devel1 sur nemo:
module load ss12 hpc
fichier site.cfg dans numpy/distutils/
[DEFAULT] library_dirs = /opt/studio12/SUNWspro/lib include_dirs = /opt/studio12/SUNWspro/include [blas] blas_libs = sunperf [lapack] lapack_libs = sunperf
et enfin:
> python setup.py install --prefix=$HOME/lib | & tee INSTALL.LOG
et s'installe dans /local/apps/lib/lib/python2.4/site-packages/
Le test:
setenv PYTHONPATH /local/apps/lib/lib/python2.4/site-packages/ python -c 'import numpy; numpy.test()'
échoue sur:
====================================================================== FAIL: check_large_types (numpy.core.tests.test_scalarmath.TestPower) ---------------------------------------------------------------------- Traceback (most recent call last): File "/local/apps/lib/lib/python2.4/site-packages/numpy/core/tests/test_scalarmath.py", line 52, in check_large_types assert b == 6765201, "error with %r: got %r" % (t,b) AssertionError: error with <type 'numpy.float96'>: got 6765201.00000000000364
et pourtant:
nemo-henry% /usr/bin/python Python 2.4.4 (#1, Jan 9 2007, 23:31:33) [C] on sunos5 Type "help", "copyright", "credits" or "license" for more information. >>> 6765201 == 6765201.00000000000364 True >>>
scipy
- scipy-0.6.0.tar.gz
> which python /usr/bin/python > python -c 'import os,sys;print os.name,sys.platform' posix sunos5 > python -c 'import sys;print sys.version' 2.4.4 (#1, Jan 9 2007, 23:31:33) [C] > > python setup.py config_fc --help-fcompiler SunFCompiler instance properties: archiver = None compile_switch = '-c' compiler_f77 = ['/opt/studio12/SUNWspro/bin/f90', '-ftrap=%none', '- f77', '-xcode=pic32'] compiler_f90 = ['/opt/studio12/SUNWspro/bin/f90', '-xcode=pic32'] compiler_fix = ['/opt/studio12/SUNWspro/bin/f90', '-fixed', '- xcode=pic32'] libraries = ['fsu', 'sunmath', 'mvec'] library_dirs = [] linker_exe = None linker_so = ['/opt/studio12/SUNWspro/bin/f90', '-Bdynamic', '-G', '- Bdynamic', '-G'] object_switch = '-o ' ranlib = None version = LooseVersion ('8.3') version_cmd = ['/opt/studio12/SUNWspro/bin/f90', '-V'] Fortran compilers found: --fcompiler=sun Sun or Forte Fortran 95 Compiler (8.3)
Puis, en s'inspirant du message
> setenv LD_PRELOAD /usr/lib/libmtsk.so > wget "http://downloads.sourceforge.net/scipy/scipy-0.5.2.1.tar.gz?modtime=1187640016&big_mirror=0" > tar xzf ../downloads/scipy-0.5.2.1.tar.gz > cd scipy-0.5.2.1/ > python setup.py install --prefix=$HOME/lib | & tee INSTALL.LOG