source: trunk/install_osx.sh@ 2804

Last change on this file since 2804 was 2661, checked in by Malte Marquarding, 12 years ago

fix program name

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