Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
scipy [2008/03/27 18:11] – gerard | scipy [Date inconnue] (Version actuelle) – supprimée - modification externe (Date inconnue) 127.0.0.1 | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ====== A propos de python ====== | ||
- | On trouve plusieurs versions de python sur nemo: | ||
- | |||
- | ^ origine ^ chemin ^ version ^ PYTHONPATH ^ 32/64 ^ | ||
- | | SUNWPython | / | ||
- | | SMCpython | / | ||
- | | CSWpython | / | ||
- | | sources | / | ||
- | |||
- | ===== Compilation de python ===== | ||
- | < | ||
- | ./configure --prefix=/ | ||
- | CC=cc CXX=CC \ | ||
- | CPPFLAGS=" | ||
- | LDFLAGS=" | ||
- | </ | ||
- | Penser à commenter OPT: dans le Makefile | ||
- | |||
- | ====== numpy ====== | ||
- | ===== Installation avec Python 2.4 ===== | ||
- | * [[http:// | ||
- | se logger devel1 sur nemo: | ||
- | < | ||
- | module load ss12 hpc | ||
- | </ | ||
- | fichier site.cfg dans numpy/ | ||
- | < | ||
- | [DEFAULT] | ||
- | library_dirs = / | ||
- | include_dirs = / | ||
- | |||
- | [blas] | ||
- | blas_libs = sunperf | ||
- | |||
- | [lapack] | ||
- | lapack_libs = sunperf | ||
- | |||
- | </ | ||
- | remove numpy/ | ||
- | < | ||
- | > python setup.py install --prefix=$HOME/ | ||
- | |||
- | </ | ||
- | et s' | ||
- | |||
- | Le test: | ||
- | < | ||
- | setenv PYTHONPATH / | ||
- | python -c ' | ||
- | </ | ||
- | échoue sur: | ||
- | < | ||
- | ====================================================================== | ||
- | FAIL: check_large_types (numpy.core.tests.test_scalarmath.TestPower) | ||
- | ---------------------------------------------------------------------- | ||
- | Traceback (most recent call last): | ||
- | File "/ | ||
- | assert b == 6765201, "error with %r: got %r" % (t,b) | ||
- | AssertionError: | ||
- | |||
- | </ | ||
- | et pourtant: | ||
- | < | ||
- | nemo-henry% / | ||
- | Python 2.4.4 (#1, Jan 9 2007, 23:31:33) [C] on sunos5 | ||
- | Type " | ||
- | >>> | ||
- | True | ||
- | >>> | ||
- | </ | ||
- | |||
- | ===== Installation avec Python 2.5 ===== | ||
- | se logger devel1 sur nemo: | ||
- | < | ||
- | module load ss12 hpc | ||
- | </ | ||
- | fichier site.cfg dans numpy/ | ||
- | < | ||
- | [DEFAULT] | ||
- | library_dirs = / | ||
- | include_dirs = / | ||
- | |||
- | [blas] | ||
- | blas_libs = sunperf | ||
- | |||
- | [lapack] | ||
- | lapack_libs = sunperf | ||
- | |||
- | </ | ||
- | et enfin: | ||
- | < | ||
- | > setenv LDFLAGS " | ||
- | > / | ||
- | </ | ||
- | et s' | ||
- | |||
- | Le test: | ||
- | < | ||
- | setenv PYTHONPATH / | ||
- | / | ||
- | </ | ||
- | |||
- | ===== Installation avec python 2.5.2 ===== | ||
- | python a été recompilé à partir des sources: | ||
- | < | ||
- | > module load ss12 hpc | ||
- | > setenv PATH / | ||
- | > python setup.py install --prefix=$HOME/ | ||
- | |||
- | |||
- | ====== scipy ====== | ||
- | |||
- | ===== Installation avec python 2.4 ===== | ||
- | |||
- | * scipy-0.6.0.tar.gz | ||
- | |||
- | < | ||
- | > which python | ||
- | / | ||
- | > python -c ' | ||
- | posix sunos5 | ||
- | > python -c ' | ||
- | 2.4.4 (#1, Jan 9 2007, 23:31:33) [C] | ||
- | > | ||
- | > python setup.py config_fc --help-fcompiler | ||
- | |||
- | SunFCompiler instance properties: | ||
- | archiver | ||
- | compile_switch | ||
- | compiler_f77 | ||
- | f77', ' | ||
- | compiler_f90 | ||
- | compiler_fix | ||
- | xcode=pic32' | ||
- | libraries | ||
- | library_dirs | ||
- | linker_exe | ||
- | linker_so | ||
- | Bdynamic', | ||
- | object_switch | ||
- | ranlib | ||
- | version | ||
- | version_cmd | ||
- | Fortran compilers found: | ||
- | --fcompiler=sun | ||
- | |||
- | </ | ||
- | Puis, en s' | ||
- | < | ||
- | > setenv LD_PRELOAD / | ||
- | > wget " | ||
- | > tar xzf ../ | ||
- | > cd scipy-0.5.2.1/ | ||
- | > python setup.py install --prefix=$HOME/ | ||
- | |||
- | |||
- | </ | ||
- | ===== Installation avec python 2.5.1 ===== | ||
- | |||
- | < | ||
- | > which python | ||
- | / | ||
- | > / | ||
- | posix sunos5 | ||
- | > / | ||
- | 2.5.1 (r251: | ||
- | </ | ||
- | |||
- | Puis, en s' | ||
- | < | ||
- | > setenv LD_PRELOAD / | ||
- | > wget " | ||
- | > tar xzf ../ | ||
- | > cd scipy-0.5.2.1/ | ||
- | > / | ||
- | |||
- | |||
- | </ | ||
- | |||
- | |||
- | |||
- | |||
- | ====== PyStemmer ====== | ||
- | s' | ||
- | < | ||
- | / | ||
- | > python setup.py install --prefix=$HOME/ | ||
- | running install | ||
- | running build | ||
- | running build_ext | ||
- | running install_lib | ||
- | copying build/ | ||
- | |||
- | </ | ||
- | |||
- | |||
- | ====== PyML ====== | ||
- | * problèmes de [[compil_pyml|compilation]] | ||