Skip to content

Commit 448179a

Browse files
committed
Merge pull request #3238 from katyhuff/osx_install
OSX install
2 parents 7f447e0 + 4efb43a commit 448179a

File tree

2 files changed

+28
-22
lines changed

2 files changed

+28
-22
lines changed

INSTALL

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@ depends on what operating system you are using, what you already have
1111
installed, and how you want to use it. To avoid wading through all
1212
the details (and potential complications) on this page, the easiest
1313
thing for you to do is use one of the pre-packaged python
14-
distributions that already provide matplotlib built-in. The Enthought
15-
Python Distribution `(EPD)
16-
<http://www.enthought.com/products/epd.php>`_ for Windows, OS X or
17-
Redhat is an excellent choice that "just works" out of the box.
14+
distributions that already provide matplotlib built-in. The Continuum.io
15+
Python distribution `(Anaconda)
16+
<https://store.continuum.io/cshop/anaconda/>`_ and the Enthought
17+
distribution `(Canopy) <https://www.enthought.com/products/canopy/>`_
18+
are both excellent choices that "just work" out of the box for any
19+
platform. Both of these packages include matplotlib and
20+
*lots* of other useful tools.
1821
Another excellent alternative for Windows users is `Python (x, y)
19-
<http://www.pythonxy.com/>`_ which tends to be updated a bit more
20-
frequently. Both of these packages include matplotlib and pylab, and
21-
*lots* of other useful tools. matplotlib is also packaged for almost
22+
<https://code.google.com/p/pythonxy>`_ . matplotlib is also packaged for almost
2223
every major Linux distribution. So if you are on Linux, your package
2324
manager will probably provide matplotlib prebuilt.
2425

25-
2626
Manually installing pre-built packages
2727
======================================
2828

@@ -198,6 +198,12 @@ six 1.3 or later
198198
Python 2/3 compatibility library. This is also a dependency of
199199
:term:`dateutil`.
200200

201+
libpng 1.2 (or later)
202+
library for loading and saving :term:`PNG` files (`download
203+
<http://www.libpng.org/pub/png/libpng.html>`__). libpng requires
204+
zlib. If you are a Windows user, you can ignore this because we
205+
build support into the matplotlib single-click installer
206+
201207

202208
**Optional GUI frameworks**
203209

@@ -241,13 +247,6 @@ ImageMagick
241247
user, you can ignore this since we build support into the
242248
matplotlib single click installer.
243249

244-
245-
libpng 1.2 (or later)
246-
library for loading and saving :term:`PNG` files (`download
247-
<http://www.libpng.org/pub/png/libpng.html>`__). libpng requires
248-
zlib. If you are a Windows user, you can ignore this because we
249-
build support into the matplotlib single-click installer
250-
251250
**Required libraries that ship with matplotlib**
252251

253252
:term:`agg` 2.4

README.osx

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
Building mpl on OSX has proven to be a nightmare because of all the
1+
Building mpl on OSX is sometimes a nightmare because of all the
22
different types of zlib, png and freetype that may be on your system.
3-
The recommended and supported way to build is to use a third-party
4-
package manager to install the required dependencies, and then
5-
install matplotlib from source using the setup.py script. Two widely
6-
used package managers are homebrew and MacPorts. The following
7-
example illustrates how to install libpng and freetype using
8-
homebrew.
3+
4+
For developers who want to build matplotlib from source, the recommended and
5+
supported way to build is to use a third-party package manager to install the
6+
required dependencies, and then install matplotlib from source using the
7+
setup.py script. Two widely used package managers are homebrew, and
8+
MacPorts. The following example illustrates how to install libpng and freetype
9+
using brew:
910

1011
Example usage::
1112

@@ -22,3 +23,9 @@ To install matplotlib from source, execute:
2223
Example usage::
2324

2425
python setup.py install
26+
27+
28+
Note that your environment is somewhat important. Some conda users have
29+
found that, to run the tests, their PYTHONPATH must include
30+
/path/to/anaconda/.../site-packages and their DYLD_FALLBACK_LIBRARY_PATH
31+
must include /path/to/anaconda/lib.

0 commit comments

Comments
 (0)