~nipy-developers/nipy/fff2

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
fff (Fast Functions For fMRI)

============================================================================
 OVERVIEW
============================================================================

Quickie. From the trunk directory, type:

 python setup.py install

Yet some conditions are required for this to work.  


============================================================================
 PERMISSIONS
============================================================================

fff depends on NumPy and SciPy, the scientific python packages, as
well as on the LAPACK library (written in fortran), although the fff
distribution uncludes a lite version of LAPACK that is built when
running setup.py if LAPACK is not found on your system.

If LAPACK is installed but not found, it is probably because it is in
a non-standard path. You may then create a site.cfg file in the root
fff directory (similarly to numpy) in order to tell the setup where
LAPACK is installed on your system. An example site.cfg is versioned
in this directory.


============================================================================
 PERMISSIONS
============================================================================

Running python setup.py install will result in an attempt to write in
the Python site-packages directory and will fail if you don't have the
appropriate permissions. You may install fff in an alternative
directory, using:

 python setup.py install --home=/my/directory

This will actually install fff under /my/directory/lib/python/. 

Alternatively, you can build fff but skip installation by just
running:

  python setup.py build 

but you will then need to adjust your PYTHONPATH environment variable
similarly to the example below (using bash):

 export PYTHONPATH=$PWD:/build/lib.linux-i686-2.5/fff/:$PYTHONPATH


============================================================================
 NUMPY / SCIPY 
============================================================================
 
To download and install both numpy and scipy, please visit:

	http://numpy.scipy.org

To test whether numpy is properly installed on your system, launch a
python terminal (for instance, ipython), and type:
 
  import numpy
  print numpy.__version__
  numpy.test()
 
The same procedure applies to scipy.

Note that only numpy is required for building fff. Some fff modules
actually work without scipy.


============================================================================
 LAPACK
============================================================================
 
fff optionnaly links with a complete LAPACK library, whose path can be
specified in the [lapack_opt] section of the configuration file if
needed (see site.cfg.example).
 
The standard LAPACK distribution is found at:

    http://www.netlib.org/lapack/
	
To build it, download the complete package (file: lapack.tgz) and
uncompress it. You should see a file called make.inc.example in the
directory that has just been created. Rename that file make.inc and
optionally edit it to modify some variables). Then type:

	   make blaslib
	   make lib
	   make (optionally for tests)

This should create at least two static libraries: blas$PLAT.a and
lapack$PLAT.a (where PLAT is set in make.in). Rename them libblas.a
and liblapack.a, respectively, and move them to an appropriate path
such as /usr/local/lib/ or $YOURHOME/lib.

For more details on building LAPACK, as well as using optimized LAPACK
implementations depending on your system (Mac OS X, Linux or 
Microsoft Windows), please visit:

       http://www.scipy.org/Installing_SciPy
  

============================================================================
 TESTING fff
============================================================================

You should now be able to launch python and type:

  import fff
  fff.test()

This will test only those modules that are loaded automatically when
initializing fff. To test other modules or packages, you need to
import them explicitely before running fff.test().

For a sub-package <package>, the command fff.<package>.test() is
available and results in testing that package only.