python

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
python [2008/10/31 15:41] gerardpython [2017/08/25 09:56] (Version actuelle) – modification externe 127.0.0.1
Ligne 35: Ligne 35:
 voir [[http://mail.python.org/pipermail/python-bugs-list/2007-January/036647.html]] voir [[http://mail.python.org/pipermail/python-bugs-list/2007-January/036647.html]]
  
-====== numpy ======+ 
 + 
 +====== numpy-1.2.1 ====== 
 +===== avec python 2.4.4 ===== 
 +mêmes corrections que pour la version 1.0.4 
 +<code> 
 +> python setup.py install --prefix=$HOME/ | & tee INSTALL.LOG 
 +</code> 
 + 
 +====== numpy-1.0.4 ====== 
 + 
 ===== Installation avec Python 2.4 ===== ===== Installation avec Python 2.4 =====
   * [[http://www.scipy.org/Download|numpy-1.0.4.tar.gz]]   * [[http://www.scipy.org/Download|numpy-1.0.4.tar.gz]]
Ligne 55: Ligne 66:
  
 </code> </code>
-remove numpy/distutils/fcompiler/sun.py f77compact from the optionlist, et enfin:+remove numpy/distutils/fcompiler/sun.py f77compact from the optionlist 
 +<code> 
 +> diff -u numpy/distutils/fcompiler/sun.py-dist numpy/distutils/fcompiler/sun.py  
 +--- numpy/distutils/fcompiler/sun.py-dist       Tue Oct 28 12:21:48 2008 
 ++++ numpy/distutils/fcompiler/sun.py    Thu Nov  6 18:22:50 2008 
 +@@ -38,7 +38,7 @@ 
 +         return ['-xtarget=generic'
 +     def get_libraries(self): 
 +         opt = [] 
 +-        opt.extend(['fsu','sunmath','mvec','f77compat']) 
 ++        opt.extend(['fsu','sunmath','mvec']) 
 +         return opt 
 +  
 + if __name__ == '__main__': 
 +</code> 
 +, et enfin:
 <code> <code>
 > python setup.py install --prefix=$HOME/lib | & tee INSTALL.LOG > python setup.py install --prefix=$HOME/lib | & tee INSTALL.LOG
Ligne 118: Ligne 144:
 /opt/csw/bin/python -c 'import numpy; numpy.test()' /opt/csw/bin/python -c 'import numpy; numpy.test()'
 </code> </code>
 +
  
 ===== Installation avec python 2.5.2 ===== ===== Installation avec python 2.5.2 =====
Ligne 125: Ligne 152:
 > setenv PATH /local/apps/lib/bin:/opt/SUNWhpc/bin:/opt/studio12/SUNWspro/bin:/usr/local/wrapper/bin:/usr/bin:/usr/bin:/usr/ccs/bin:/usr/sfw/bin > setenv PATH /local/apps/lib/bin:/opt/SUNWhpc/bin:/opt/studio12/SUNWspro/bin:/usr/local/wrapper/bin:/usr/bin:/usr/bin:/usr/ccs/bin:/usr/sfw/bin
 > python setup.py install --prefix=$HOME/lib | & tee INSTALL.LOG > python setup.py install --prefix=$HOME/lib | & tee INSTALL.LOG
 +</code>
  
  
 ====== scipy ====== ====== scipy ======
 +
 +
 +
 +===== version 0.6.0 =====
 +
 +<code>
 +> setenv PYTHONPATH /local/apps/lib/python2.4/site-packages/
 +> mkdir -p scipy/distutils/fcompiler/
 +> cp ../numpy-1.2.1/numpy/distutils/fcompiler/sun.py scipy/distutils/fcompiler/
 +> setenv LDFLAGS "-lCrun -lCstd"
 +> setenv LAPACK /opt/SUNWspro/lib/libsunmath.so
 +> setenv BLAS /opt/SUNWspro/lib/libsunperf.so
 +> cp -rp scipy/sparse/sparsetools/sparsetools.h scipy/sparse/sparsetools/sparsetools.h-dist
 +> diff -u scipy/sparse/sparsetools/sparsetools.h-dist scipy/sparse/sparsetools/sparsetools.h
 +--- scipy/sparse/sparsetools/sparsetools.h-dist Sat Sep 22 09:55:25 2007
 ++++ scipy/sparse/sparsetools/sparsetools.h      Fri Nov  7 08:47:39 2008
 +@@ -22,8 +22,8 @@
 +
 + #include <vector>
 + #include <algorithm>
 ++#include <functional>
 +
 +-
 + /*
 +  * Extract main diagonal of CSR matrix A
 +  *
 +</code>
 +  * [[http://blogs.sun.com/yongsun/entry/build_scipy_0_6_0|build scipy-0.6.0 on Solaris with SunStudio 12]]
  
 ===== Installation avec python 2.4 ===== ===== Installation avec python 2.4 =====
Ligne 174: Ligne 230:
            
 </code> </code>
 +
 ===== Installation avec python 2.5.1 ===== ===== Installation avec python 2.5.1 =====
  
Ligne 216: Ligne 273:
 ====== PyML ====== ====== PyML ======
   * problèmes de [[compil_pyml|compilation]]   * problèmes de [[compil_pyml|compilation]]
 +
  
  
Ligne 222: Ligne 280:
 <code> <code>
 python setup.py install --prefix=$HOME | & tee INSTALL.LOG python setup.py install --prefix=$HOME | & tee INSTALL.LOG
 +</code>
 +
 +
 +
 +
 +====== Pygraphviz ======
 +<code>
 +> pwd
 +/local/apps/src/pygraphviz-0.37
 +bash-3.00$ export PYTHONPATH=/local/apps/lib/python2.4/site-packages
 +bash-3.00$ export PATH=/opt/csw/graphviz2/bin:$PATH
 +bash-3.00$ python setup.py install --prefix=$HOME | tee INSTALL.LOG
 +Package libagraph was not found in the pkg-config search path.
 +Perhaps you should add the directory containing `libagraph.pc'
 +to the PKG_CONFIG_PATH environment variable
 +No package 'libagraph' found
 +Package libagraph was not found in the pkg-config search path.
 +Perhaps you should add the directory containing `libagraph.pc'
 +to the PKG_CONFIG_PATH environment variable
 +No package 'libagraph' found
 +Trying pkg-config
 +Trying dotneato-config
 +library_path=/opt/csw/graphviz2/lib/graphviz
 +include_path=/opt/csw/graphviz2/include/graphviz
 +running install
 +running build
 +running build_py
 +...
 +
 +</code>
 +pour nettoyer, effacer:
 +<code>
 +/local/apps/lib/python2.4/site-packages/pygraphviz/
 +\rm -rf build/*
 +</code>
 +Pour tester:
 +<code>
 +python -c 'import pygraphviz; pygraphviz.test()'
 </code> </code>
  • python.1225464064.txt.gz
  • Dernière modification : 2017/08/25 09:55
  • (modification externe)