<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<?php include("base.inc"); ?>
<title>ASAP - ATNF Spectral line Analysis Package</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="DC.Creator" lang="en" content="personalName=Marquarding,Malte" />
<meta name="ATNF.Maintainer" content="contactName=Marquarding,Malte" />
<meta name="DC.Title" lang="en" content="Homepage of Malte Marquarding" />
<meta name="DC.Title.alt" lang="en" content="" />
<meta name="DC.Subject" lang="en" content="spectral line" />
<meta name="DC.Description" lang="en" content="Just some links and contact details" />
<meta name="DC.Date.created" scheme="ISO8601" content="2005-08-02" />
<meta name="ATNF.Site" content="Marsfield" />
<meta name="ATNF.AccessPermission" content="Public" />
<meta name="ATNF.MetaVersion" content="1.0" />
<?php standard_head(); ?>
<STYLE TYPE="text/css">
<!--
B.asap {
 text-align: center;
 color: blue;
}
B.note {
 color: red;
}
-->
</STYLE>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<?php
title_bar("atnf");
title_crumbs("/computing/software/");
?>
<!-- Start Content -->
<h1>ASAP OS X (10.4)install</h1>
This might or might not work with 10.3. Obviously, steps specific for
10.4 have to be omitted.
<h2>Getting stuff</h2>
<a href="http://pythonmac.org/packages">pythonmac.org</a> has
pre-packaged python modules.
<br>
From the section <b>Mac OS X 10.4 (stock Python 2.3.5) </b>
<br>get
<ul>
  <li>
<a
      href="http://pythonmac.org/packages/TigerPython23Compat.pkg.zip">TigerPython23Compat</a> </li>
</ul>
From the section <b>Mac OS X 10.3 (stock Python 2.3.0) </b>
<br>get
<ul>
  <li>
<a
      href="http://pythonmac.org/packages/Numeric-23.7-py2.3-macosx10.3.zip">Numeric</a> </li>
  <li>
<a
      href="http://pythonmac.org/packages/numarray-1.1.1-py2.3-macosx10.3.zip">numarray</a> </li>
<a
      href="http://pythonmac.org/packages/matplotlib-0.82-py2.3-macosx10.3.zip">matplotlib</a> </li>
</ul>
<br>
Next get <a href="http://ipython.scipy.org/dist">ipython</a> and run:<br>
<pre>
tar zxvf ipython-0.6.15.tar.gz
sudo python setup.py install
sudo ln -s ../../System/Library/Frameworks/Python.framework/Versions/2.3/bin/ipython /usr/bin/ipython
</pre>


<h2>Tweaking it</h2>
Run the following in a terminal:<br>
OSX comes with your own pimp pre-installed, so better use him!<br>
<pre>
sudo python `python -c "import pimp; print pimp.__file__"` -i readline
</pre>

Then as 'root' or 'sudo' edit<br>
<b>/System/Library/Frameworks/Python.framework/Versions/2.3/share/matplotlib/.matplotlibrc</b><br>
In this file replace<br>
<b> backend    : GTKAgg</b><br>
with<br>
<b> backend    : TkAgg</b><br>
<p>
Now we have to patch matplotlib:
Get <a href="./figure.py">this</a> and run:<br>
<pre>
sudo cp -f figure.py /Library/Python/2.3/matplotlib/
</pre>

<h2>Oh yeah there is ASAP, too</h2>
Get
<a
href="ftp://ftp.atnf.csiro.au/pub/software/asap/asap_osx.tar.bz2">this</a>.
Unpack and run.<br>
<pre>
tar jxvf asap_osx.tar.bz2
sudo sh install.sh
</pre>

<h2>Run ASAP</h2>
Now you should be able to run "asap". On first run you might have to
answer a few set-up questions (ipython) and get a lot of font related
errors (matplotlib). Ignore these.

<!-- End Content -->
<?php footer(); ?>
</body>
</html>
