Last change
on this file since 2656 was
2656,
checked in by Malte Marquarding, 12 years ago
|
create temporary 'sudo' MPLCFGDIR
|
-
Property svn:executable set to
*
|
File size:
986 bytes
|
Rev | Line | |
---|
[2655] | 1 | #!/bin/sh |
---|
| 2 | |
---|
| 3 | FTPURL="ftp://ftp.atnf.csiro.au/pub/software/asap" |
---|
| 4 | |
---|
| 5 | if [ `id -u` -ne 0 ]; then |
---|
| 6 | echo "install_asap.sh: Must be executed by root (sudo)" |
---|
| 7 | exit 1 |
---|
| 8 | fi |
---|
| 9 | ASAPVERS=4.1 |
---|
| 10 | OSXVERS=$(sw_vers | grep -o '10\.[7-8]') |
---|
[2656] | 11 | echo $OSXVERS |
---|
| 12 | if [ -z ${OSXVERS} ]; then echo "Only OS X >= 10.7 supported"; exit 1; fi |
---|
[2655] | 13 | ASAPEGG="${FTPURL}/${ASAPVERS}/asap-4.1.0-py2.7-macosx-${OSXVERS}-intel.egg" |
---|
| 14 | MPLEGG="${FTPURL}/matplotlib/matplotlib-1.1.1-py2.7-macosx-${OSXVERS}-intel.egg" |
---|
| 15 | MPL=$(/usr/bin/python -c 'import matplotlib' >/dev/null 2>&1) |
---|
| 16 | # install matplotlib if not already there |
---|
| 17 | if [ -n $? ] |
---|
| 18 | then |
---|
| 19 | echo "Matplotlib not installed. Installing from CASS ftp server..." |
---|
[2656] | 20 | /usr/bin/easy_install-2.7 -U ${MPLEGG} |
---|
[2655] | 21 | fi |
---|
| 22 | |
---|
| 23 | # This should pull in IPython if required |
---|
[2656] | 24 | /usr/bin/easy_install-2.7 -U ${ASAPEGG} |
---|
[2655] | 25 | |
---|
| 26 | # make sure readline is installed |
---|
| 27 | /usr/bin/easy_install-2.7 readline |
---|
| 28 | |
---|
| 29 | # update measures data |
---|
[2656] | 30 | MPLTMP=/tmp/mpltmp |
---|
| 31 | mkdir ${MPLTMP} |
---|
| 32 | MPLCONFIGDIR="${MPLTMP}" /usr/local/bin/asap_update_data |
---|
| 33 | rm -rf ${MPLTMP} |
---|
Note: See
TracBrowser
for help on using the repository browser.