scipy

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:

  1. -verbose (-v) run verbosely (default)
  2. -quiet (-q) run quietly (turns verbosity off)
  3. -dry-run (-n) don't actually do anything
  4. -help (-h) show detailed help message

Options for 'config' command:

  1. -compiler specify the compiler type
  2. -cc specify the compiler executable
  3. -include-dirs (-I) list of directories to search for header files
  4. -define (-D) C preprocessor macros to define
  5. -undef (-U) C preprocessor macros to undefine
  6. -libraries (-l) external C libraries to link with
  7. -library-dirs (-L) directories to search for external C libraries
  8. -noisy show every action (compile, link, run, …) taken
  9. -dump-source dump generated source files before attempting to

compile them

  1. -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()'

  • scipy.1204718704.txt.gz
  • Dernière modification : 2017/08/25 09:55
  • (modification externe)