File: README.osx

package info (click to toggle)
matplotlib 2.0.0%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 91,640 kB
  • ctags: 29,525
  • sloc: python: 122,697; cpp: 60,806; ansic: 30,799; objc: 2,830; makefile: 224; sh: 85
file content (31 lines) | stat: -rw-r--r-- 1,040 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Building mpl on OSX is sometimes a nightmare because of all the
different types of zlib, png and freetype that may be on your system.

For developers who want to build matplotlib from source, the recommended and 
supported way to build is to use a third-party package manager to install the 
required dependencies, and then install matplotlib from source using the 
setup.py script. Two widely used package managers are homebrew, and 
MacPorts. The following example illustrates how to install libpng and freetype 
using brew:

Example usage::

  brew install libpng freetype pkg-config

If you are using MacPorts, execute the following instead:

Example usage::

  port install libpng freetype pkgconfig

To install matplotlib from source, execute:

Example usage::

  python setup.py install


Note that your environment is somewhat important. Some conda users have 
found that, to run the tests, their PYTHONPATH must include 
/path/to/anaconda/.../site-packages and their DYLD_FALLBACK_LIBRARY_PATH 
must include /path/to/anaconda/lib.