source: trunk/install_osx.sh@ 2655

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

helper install script for OSX 10.7+

  • Property svn:executable set to *
File size: 890 bytes
Line 
1#!/bin/sh
2
3FTPURL="ftp://ftp.atnf.csiro.au/pub/software/asap"
4
5if [ `id -u` -ne 0 ]; then
6 echo "install_asap.sh: Must be executed by root (sudo)"
7 exit 1
8fi
9ASAPVERS=4.1
10OSXVERS=$(sw_vers | grep -o '10\.[7-8]')
11if [ -n ${OSXVERS} ]; then echo "Only OS X >= 10.7 supported"; exit 1; fi
12ASAPEGG="${FTPURL}/${ASAPVERS}/asap-4.1.0-py2.7-macosx-${OSXVERS}-intel.egg"
13MPLEGG="${FTPURL}/matplotlib/matplotlib-1.1.1-py2.7-macosx-${OSXVERS}-intel.egg"
14MPL=$(/usr/bin/python -c 'import matplotlib' >/dev/null 2>&1)
15# install matplotlib if not already there
16if [ -n $? ]
17then
18 echo "Matplotlib not installed. Installing from CASS ftp server..."
19 /usr/bin/easy_install-2.7 ${MPLEGG}
20fi
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.