forked from centowen/stacker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathINSTALL
More file actions
49 lines (38 loc) · 2.07 KB
/
Copy pathINSTALL
File metadata and controls
49 lines (38 loc) · 2.07 KB
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
# ------ Typical installation ------
make install # Should work in most cases.
# ------ If that does not work ------
This is compiled for several casa versions. Copy stacker folder to a python
library path, typically "~/.casa/ipython/" is a good place.
In case the library does not work you will need to manually compile.
This is best done using scons. Typically as:
cd stacker_clib; scons --link2casa; cd ..; make install
# --- Details on compiling from source ---
Build scripts are designed using scons. Requirements:
* scons
* casa or casacore
* pysvn -- Required for most versions of casa, used to download casacore
headers for a matching version of casa.
* pkgconfig -- Simplifies the finding of casacore includes and libs when
compiling to casacore.
Linking to casa the scons script can be used as follows:
$ scons --link2casa
Linking to casacore
$ scons
Will use pkgconfig to locate casacore, ensure that casacore.pc or
equivalent is located is PKG_CONFIG_PATH
Several other flags exist to control the compilation and linking:
--casapath: specify an alternate path to casapy
--cuda: Compile cuda support, requires cuda libraries on the system.
Requires an NVidia GPU to work.
Binding to casa and casacore are not always stable across releases. The
scons script includes code to deal with such changes. Changes are typically
in the location of casacore includes in the casa release.
The script used by scons is located in "SConstruct". Compilation against casa is controlled
against the svnrevision number. This ensures that the script can properly
identify the correct version of casa. For most versions of casa the
casacore headers are not distributed with the binary release. However,
the headers are in the casa svn repository, as they may not exactly match
the github version of casacore. If modifying "SConstruct" it is recomended
to add a new clause to "if link_against_casa and int(svnversion) >= 36590:"
if block. Note that code may need to be added in two places. First where
casa headers are downloaded and secondly where they are added to CPPPATH.