Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove all mention of make.osx in README.osx #1439

Merged
merged 1 commit into from Nov 4, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
44 changes: 19 additions & 25 deletions README.osx
@@ -1,30 +1,24 @@
Building mpl on OSX has proven to be a nightmare because of all the
different types of zlib, png and freetype that may be on your system.
The recommended and supported way to build is to use the make.osx file
in this directory. This script requires you to set a PREFIX
environment variable where you want the install to go. It will
fetch the dependencies from a remote server and install them into your
PREFIX dir, and then build mpl against them. It should ignore any
lib, png or freetype on your system
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
homebrew.

Example usage::

make -f make.osx PREFIX=/Users/jdhunter/dev PYVERSION=2.6 \
fetch deps mpl_install_std

Variables:
PREFIX (required): where to install the dependencies
PYVERSION (optional): which python version to use
(default=python, e.g. PYVERSION=2.6 uses python2.6)

Targets:

clean: remove compiled files
fetch: download dependencies
deps: build all dependencies (zlib, png, freetype)
mpl_build: compile matplotlib
mpl_install: install matplotlib in $PREFIX/lib/pythonX.Y/site-packages
mpl_install_std: install matplotlib in standard site-packages directory
mpl_install_egg: install matplotlib as an egg
mpl_install_develop: set up egg link to working directory (for developers)
binaries: create the dmg file for distribution
brew install libpng freetype

If you are using MacPorts, execute the following instead:

Example usage::

port install libpng freetype

To install matplotlib from source, execute:

Example usage::

python setup.py install