Last change
on this file since 312 was 297, checked in by vor010, 20 years ago |
SDLineFinder: C++ class and python binder
have been added. This is an initial version, but it works in some simple
cases. Makefile and install.sh were updated to account for new source files
|
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
1.4 KB
|
Rev | Line | |
---|
[217] | 1 | #!/bin/sh
|
---|
| 2 |
|
---|
| 3 | ########################################
|
---|
| 4 | # #
|
---|
| 5 | # Install the asap python module #
|
---|
| 6 | # #
|
---|
| 7 | ########################################
|
---|
| 8 |
|
---|
[297] | 9 | # temporary check to allow the same file for Narrabri and Epping
|
---|
| 10 | if [ x"$NARRABRI_ASAP" = xyes ];
|
---|
| 11 | then
|
---|
| 12 | ASAPDIR='/DATA/KAPUTAR_2/vor010/ASAP/site-packages/asap'
|
---|
| 13 | SRCDIR='/DATA/KAPUTAR_2/vor010/ASAP/asap'
|
---|
| 14 | else
|
---|
[217] | 15 | ASAPDIR='/usr/local/lib/python2.3/site-packages/asap'
|
---|
| 16 | SRCDIR='/u/mar637/brage/singledish/asap'
|
---|
[297] | 17 | fi
|
---|
| 18 | #
|
---|
[217] | 19 |
|
---|
| 20 | # where the source python files are
|
---|
| 21 | pydir='python'
|
---|
| 22 | # where the library modules is
|
---|
| 23 | libdir='lib'
|
---|
| 24 | # the python files to install
|
---|
[297] | 25 | srcfiles="__init__.py asapmath.py scantable.py asapreader.py asaplot.py asapfitter.py asapplotter.py asaplinefind.py"
|
---|
[217] | 26 | # the libraries to install
|
---|
| 27 | libfiles='_asap.so'
|
---|
| 28 |
|
---|
| 29 | #if [ -d ${SHAREDIR} ] ; then
|
---|
| 30 | # echo "ASAP share dir already exists."
|
---|
| 31 | #else
|
---|
| 32 | # mkdir ${SHAREDIR}
|
---|
| 33 | #fi
|
---|
| 34 |
|
---|
| 35 | # go to src dir
|
---|
| 36 | if [ -d ${SRCDIR} ] ; then
|
---|
| 37 | cd ${SRCDIR}
|
---|
| 38 | else
|
---|
| 39 | echo "No source directory found."
|
---|
| 40 | exit 0
|
---|
| 41 | fi
|
---|
| 42 |
|
---|
| 43 | # check if the site-packes directory exists and create if necessary
|
---|
| 44 | if [ -d ${ASAPDIR} ] ; then
|
---|
| 45 | echo "Using existing asap module dir."
|
---|
| 46 | else
|
---|
| 47 | mkdir ${ASAPDIR}
|
---|
| 48 | fi
|
---|
| 49 |
|
---|
| 50 | # install asap files
|
---|
| 51 | for f in ${srcfiles}
|
---|
| 52 | do
|
---|
| 53 | cp -f ${SRCDIR}/${pydir}/${f} ${ASAPDIR}/
|
---|
| 54 | done
|
---|
| 55 |
|
---|
| 56 | for f in ${libfiles}
|
---|
| 57 | do
|
---|
| 58 | cp -f ${SRCDIR}/${libdir}/${f} ${ASAPDIR}/
|
---|
| 59 | done
|
---|
[289] | 60 | chmod -R g+w ${ASAPDIR}
|
---|
[217] | 61 | echo "Successfully installed the asap module into ${ASAPDIR}"
|
---|
| 62 |
|
---|
| 63 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.