User Tools

Site Tools


howto:compiling_python_2_7_3

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
howto:compiling_python_2_7_3 [2012/09/19 17:52]
adymond [NumPy and SciPy]
howto:compiling_python_2_7_3 [2021/12/09 16:42] (current)
Line 347: Line 347:
   $ python setup.py install   $ python setup.py install
  
- +
 === Scipy, minimal install === === Scipy, minimal install ===
  
   $ cd ~/scratch   $ cd ~/scratch
   $ wget http://tenet.dl.sourceforge.net/project/scipy/scipy/0.10.1/scipy-0.10.1.tar.gz   $ wget http://tenet.dl.sourceforge.net/project/scipy/scipy/0.10.1/scipy-0.10.1.tar.gz
-  $ tar -xf scipy-0.10.1.tar.gz +  $ tar -xf scipy-0.10.1.tar.gz
   $ cd scipy-0.10.1/   $ cd scipy-0.10.1/
-Set blas and lapack paths +  $ python setup.py build #takes about 10 minutes to build
-  $ export ATLAS=None +
-  $ export BLAS=$HOME/local/lib64/librefblas.a +
-  $ export LAPACK=$HOME/local/lib64/liblapack.a +
-Build it, which takes a while +
-  $ python setup.py build +
-Install it +
-  $ python setup.py install +
  
- +testing, 
-Once the build has been successfully completed, its time to install and test +  $ mkdir -p /tmp/$USER/scipy-0.10.1 
-scipy +  $ python setup.py install --prefix=/tmp/$USER/scipy-0.10.1_testing
-  $ python setup.py install +
-  $ cd ~+
   $ ipython   $ ipython
-  $ import scipy +    $ import os, sys 
-  $ scipy.test() +    $ sys.path.insert(0,'/tmp/%s/scipy-0.10.1_testing/lib/python2.7/site-packages'  % os.environ['USER']) 
 +    $ import scipy 
 +    $ scipy.test()
 which did not work 100 % :( which did not work 100 % :(
   FAILED (KNOWNFAIL=13, SKIP=41, failures=1)   FAILED (KNOWNFAIL=13, SKIP=41, failures=1)
   Out[2]: <nose.result.TextTestResult run=5101 errors=0 failures=1>   Out[2]: <nose.result.TextTestResult run=5101 errors=0 failures=1>
  
 +If testing satisfactory, rm the testing directory and install scipy
 +  $ rm -r /tmp/$USER/scipy-0.10.1_testing
 +  $ python setup.py install
 ==== matplotlib / pylab ==== ==== matplotlib / pylab ====
  
/app/dokuwiki/data/attic/howto/compiling_python_2_7_3.1348069962.txt.gz · Last modified: 2021/12/09 16:42 (external edit)