@@ -287,11 +287,66 @@ official OS X version from `python.org
287287<http://www.python.org/download/> `_.
288288
289289
290+ .. _install_osx_binaries :
291+
292+ Installing OSX binaries
293+ -----------------------
294+
295+ If you want to install matplotlib from one of the binary installers we
296+ build, you have two choices: a mpkg installer, which is a typical
297+ Installer.app, or an binary OSX egg, which you can install via
298+ setuptools easy_install.
299+
300+ The mkpg installer will have a "zip" extension, and will have a name
301+ like file:`matplotlib-0.99.0.rc1-py2.5-macosx10.5.zip ` depending on
302+ the python, matplotlib, and OSX versions. You need to unzip this file
303+ using either the "unzip" command on OSX, or simply double clicking on
304+ it to run StuffIt Expander. When you double click on the resultant
305+ mpkd directory, which will have a name like
306+ file:`matplotlib-0.99.0.rc1-py2.5-macosx10.5.mpkg `, it will run the
307+ Installer.app, prompt you for a password if you need system wide
308+ installation privileges, and install to a directory like
309+ file:`/Library/Python/2.5/site-packages/ `, again depedending on your
310+ python version. This directory may not be in your python path, so you
311+ can test your installation with::
312+
313+ > python -c 'import matplotlib; print matplotlib.__version__, matplotlib.__file__'
314+
315+ If you get an error like::
316+
317+ Traceback (most recent call last):
318+ File "<string>", line 1, in <module>
319+ ImportError: No module named matplotlib
320+
321+ then you will need to set your PYTHONPATH, eg::
322+
323+ export PYTHONPATH=/Library/Python/2.5/site-packages:$PYTHONPATH
324+
325+ See also ref:`environment-variables `.
326+
290327.. _easy-install-osx-egg :
291328
292- easy_install from egg?
329+ easy_install from egg
293330------------------------------
294331
332+ You can also us the eggs we build for OSX (see the `installation
333+ instructions
334+ <http://pypi.python.org/pypi/setuptools#cygwin-mac-os-x-linux-other> `_
335+ for easy_install if you do not have it on your system already). You
336+ can try::
337+
338+ > easy_install matplotlib
339+
340+ which should grab the latest egg from the sourceforge site, but the
341+ naming conventions for OSX eggs appear to be broken (see below) so
342+ there is no guarantee the right egg will be found. We recommend you
343+ download the latest egg from our `download site
344+ <http://sourceforge.net/projects/matplotlib/files/> `_ directly to your
345+ harddrive, and manually install it with
346+
347+ > easy_install --install-dir=~/dev/lib/python2.5/site-packages/ matplotlib-0.99.0.rc1-py2.5-macosx-10.5-i386.egg
348+
349+
295350Some users have reported problems with the egg for 0.98 from the
296351matplotlib download site, with ``easy_install ``, getting an error::
297352
0 commit comments