Ceci est une ancienne révision du document !
référence
[[http://www.scipy.org/Download]]
Installation
- numpy-1.0.4.tar.gz
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/python | & tee INSTALL.LOG
- 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 Running from numpy source directory. 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', 'f77compat'] 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)
python setup.py config_fc --fcompiler=<Vendor> install python setup.py install --fcompiler=sun --prefix=$HOME/python |& tee INSTALL.LOG
pour numpy:
python setup.py config –help
Running from numpy source directory. Global options:
- -verbose (-v) run verbosely (default)
- -quiet (-q) run quietly (turns verbosity off)
- -dry-run (-n) don't actually do anything
- -help (-h) show detailed help message
Options for 'config' command:
- -compiler specify the compiler type
- -cc specify the compiler executable
- -include-dirs (-I) list of directories to search for header files
- -define (-D) C preprocessor macros to define
- -undef (-U) C preprocessor macros to undefine
- -libraries (-l) external C libraries to link with
- -library-dirs (-L) directories to search for external C libraries
- -noisy show every action (compile, link, run, …) taken
- -dump-source dump generated source files before attempting to
compile them
- -fcompiler specify the Fortran compiler type
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] …]
or: setup.py --help [cmd1 cmd2 ...] or: setup.py --help-commands or: setup.py cmd --help
python setup.py install
site.cfg
python -c 'import numpy; numpy.test()'