source: trunk/install_osx.sh@ 2676

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

fix program name

  • Property svn:executable set to *
File size: 1010 bytes
Line 
1#!/bin/sh
2
3FTPURL="ftp://ftp.atnf.csiro.au/pub/software/asap"
4
5#test -n $1 && export http_proxy=$1
6
7if [ `id -u` -ne 0 ]; then
8 echo "$0: Must be executed by root (sudo)"
9 exit 1
10fi
11ASAPVERS=4.1
12OSXVERS=$(sw_vers | grep -o '10\.[7-8]')
13echo $OSXVERS
14if [ -z ${OSXVERS} ]; then echo "Only OS X >= 10.7 supported"; exit 1; fi
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..."
22 /usr/bin/easy_install-2.7 -U ${MPLEGG}
23fi
24
25# This should pull in IPython if required
26/usr/bin/easy_install-2.7 -U ${ASAPEGG}
27
28# make sure readline is installed
29/usr/bin/easy_install-2.7 readline
30
31# update measures data
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.