|
Last change
on this file since 2655 was 2655, checked in by Malte Marquarding, 13 years ago |
|
helper install script for OSX 10.7+
|
-
Property svn:executable
set to
*
|
|
File size:
890 bytes
|
| Line | |
|---|
| 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]')
|
|---|
| 11 | if [ -n ${OSXVERS} ]; then echo "Only OS X >= 10.7 supported"; exit 1; fi
|
|---|
| 12 | ASAPEGG="${FTPURL}/${ASAPVERS}/asap-4.1.0-py2.7-macosx-${OSXVERS}-intel.egg"
|
|---|
| 13 | MPLEGG="${FTPURL}/matplotlib/matplotlib-1.1.1-py2.7-macosx-${OSXVERS}-intel.egg"
|
|---|
| 14 | MPL=$(/usr/bin/python -c 'import matplotlib' >/dev/null 2>&1)
|
|---|
| 15 | # install matplotlib if not already there
|
|---|
| 16 | if [ -n $? ]
|
|---|
| 17 | then
|
|---|
| 18 | echo "Matplotlib not installed. Installing from CASS ftp server..."
|
|---|
| 19 | /usr/bin/easy_install-2.7 ${MPLEGG}
|
|---|
| 20 | fi
|
|---|
| 21 |
|
|---|
| 22 | # This should pull in IPython if required
|
|---|
| 23 | /usr/bin/easy_install-2.7 ${ASAPEGG}
|
|---|
| 24 |
|
|---|
| 25 | # make sure readline is installed
|
|---|
| 26 | /usr/bin/easy_install-2.7 readline
|
|---|
| 27 |
|
|---|
| 28 | # update measures data
|
|---|
| 29 | /usr/local/bin/asap_update_data
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.