Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2edf572

Browse files
committed
Merged revisions 7751 via svnmerge from
https://matplotlib.svn.sf.net/svnroot/matplotlib/branches/v0_99_maint ........ r7751 | jdh2358 | 2009-09-12 17:11:42 -0400 (Sat, 12 Sep 2009) | 1 line tagging for 99.1 release candiate ........ svn path=/trunk/matplotlib/; revision=7757
1 parent 11605bc commit 2edf572

2 files changed

Lines changed: 57 additions & 64 deletions

File tree

README.txt

Lines changed: 31 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,45 @@
1-
Overview of the matplotlib src tree
2-
===================================
1+
matplotlib for MacOS X 10.3.9 or later and Python 2.5 and Python 2.6
32

4-
This is the source directory for matplotlib, which contains the
5-
following files and directories.
3+
matplotlib is a python 2D plotting library which produces publication
4+
quality figures in a variety of hardcopy formats and interactive
5+
environments across platforms. matplotlib can be used in python
6+
scripts, the python and ipython shell (ala matlab or mathematica), web
7+
application servers, and various graphical user interface toolkits.
68

7-
* doc - the matplotlib documentation. See doc/users for the user's
8-
documentation and doc/devel for the developers documentation
9+
Home page: <http://matplotlib.sourceforge.net/>
910

10-
* examples - a bunch of examples using matplotib. See
11-
examples/README.txt for information
11+
Before running matplotlib, you must install numpy. Binary installers
12+
for all these packages are available here:
1213

13-
* setup.cfg.template - used to configure the matplotlib build process.
14-
Copy this file to setup.cfg if you want to override the default
15-
build behavior
14+
<http://pythonmac.org/packages/py25-fat/index.html>.
1615

17-
* matplotlibrc.template - a template file used to generate the
18-
matplotlibrc config file at build time. The matplotlibrc file will
19-
be installed in matplotlib/mpl-data/matplotlibrc
16+
*** Back Ends ***
2017

21-
* lib - the python src code. matplotlib ships several third party
22-
packages here. The subdirectory lib/matplotlib contains the python
23-
src code for matplotlib
18+
You may use TkAgg or WXAgg back ends; Qt and GTK support is not
19+
provided in this package. By default this matplotlib uses TkAgg
20+
because Tcl/Tk is included with MacOS X.
2421

25-
* src - the matplotlib extension code, mostly C++
22+
If you wish to use WXAgg then:
23+
* Install wxPython from:
24+
<http://pythonmac.org/packages/py25-fat/index.html>.
25+
* Configure a matplotlibrc file, as described below.
2626

27-
* ttconv - some truetype font utilities
27+
For TkAgg you may use Apple's built-in Tcl/Tk or install your own 8.4.x
2828

29-
* license - all the licenses for code included with matplotlib.
30-
matplotlib uses only BSD compatible code
29+
*** Configuring a matplotlibrc file ***
3130

32-
* unit - some unit tests
31+
If you wish to change any matplotlib settings, create a file:
32+
~/.matplotlib/matplotlibrc
3333

34-
* CHANGELOG - all the significant changes to matplotlib, organized by
35-
release. The top of this file will show you the most recent changes
3634

37-
* API_CHANGES - any change that alters the API is listed here. The
38-
entries are organized by release, with most recent entries first
35+
that contains at least the following information. The values shown are
36+
the defaults in the internal matplotlibrc file; change them as you see
37+
fit:
3938

40-
* MIGRATION.txt - instructions on moving from the 0.91 code to the
41-
0.98 trunk.
42-
43-
* SEGFAULTS - some tips for how to diagnose and debug segfaults
44-
45-
* setup.py - the matplotlib build script
46-
47-
* setupext.py - some helper code for setup.py to build the matplotlib
48-
extensions
49-
50-
* boilerplate.py - some code to automatically generate the pyplot
51-
wrappers
52-
53-
* DEVNOTES - deprecated developer notes. TODO: update and move to the
54-
doc/devel framework
55-
56-
* FILETYPES - This is a table of the output formats supported by each
57-
backend. TODO: move to doc/users
58-
59-
* INTERACTIVE - instructions on using matplotlib interactively, eg
60-
from the python shell. TODO: update and move to doc/users.
39+
# the default backend; one of GTK GTKAgg GTKCairo FltkAgg QtAgg TkAgg WXAgg
40+
# Agg Cairo GD GDK Paint PS PDF SVG Template
41+
backend : TkAgg
42+
interactive : False # see http://matplotlib.sourceforge.net/interactive.html
6143

44+
See also
45+
<http://matplotlib.sourceforge.net/users/customizing.html>

make.osx

Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# build mpl into a local install dir with
22
# PREFIX=/Users/jdhunter/dev make -f make.osx fetch deps mpl_install
33

4+
MPLVERSION=0.99.1rc1
45
PYVERSION=2.6
56
PYTHON=python${PYVERSION}
67
ZLIBVERSION=1.2.3
@@ -11,8 +12,8 @@ MACOSX_DEPLOYMENT_TARGET=10.4
1112
## You shouldn't need to configure past this point
1213

1314
PKG_CONFIG_PATH="${PREFIX}/lib/pkgconfig"
14-
CFLAGS_DEPS="-arch i386 -arch ppc -I${PREFIX}/include -I${PREFIX}/include/freetype2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk"
15-
LDFLAGS_DEPS="-arch i386 -arch ppc -L${PREFIX}/lib -syslibroot,/Developer/SDKs/MacOSX10.4u.sdk"
15+
CFLAGS="-arch i386 -arch ppc -I${PREFIX}/include -I${PREFIX}/include/freetype2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk"
16+
LDFLAGS="-arch i386 -arch ppc -L${PREFIX}/lib -syslibroot,/Developer/SDKs/MacOSX10.4u.sdk"
1617

1718
clean:
1819
rm -rf zlib-${ZLIBVERSION}.tar.gz libpng-${PNGVERSION}.tar.bz2 \
@@ -34,10 +35,10 @@ zlib:
3435
tar xvfz zlib-${ZLIBVERSION}.tar.gz &&\
3536
cd zlib-${ZLIBVERSION} &&\
3637
export MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET} &&\
37-
export CFLAGS=${CFLAGS_DEPS} &&\
38-
export LDFLAGS=${LDFLAGS_DEPS} &&\
38+
export CFLAGS=${CFLAGS} &&\
39+
export LDFLAGS=${LDFLAGS} &&\
3940
./configure --prefix=${PREFIX}&&\
40-
MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET} CFLAGS=${CFLAGS_DEPS} LDFLAGS=${LDFLAGS_DEPS} make -j3 install&& \
41+
MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET} CFLAGS=${CFLAGS} LDFLAGS=${LDFLAGS} make -j3 install&& \
4142
unset MACOSX_DEPLOYMENT_TARGET
4243

4344
png: zlib
@@ -46,8 +47,8 @@ png: zlib
4647
tar xvfj libpng-${PNGVERSION}.tar.bz2
4748
cd libpng-${PNGVERSION} &&\
4849
export MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET} &&\
49-
export CFLAGS=${CFLAGS_DEPS} &&\
50-
export LDFLAGS=${LDFLAGS_DEPS} &&\
50+
export CFLAGS=${CFLAGS} &&\
51+
export LDFLAGS=${LDFLAGS} &&\
5152
./configure --disable-dependency-tracking --prefix=${PREFIX} &&\
5253
make -j3 install&&\
5354
cp .libs/libpng.a . &&\
@@ -60,8 +61,8 @@ freetype: zlib
6061
tar xvfj freetype-${FREETYPEVERSION}.tar.bz2 &&\
6162
cd freetype-${FREETYPEVERSION} &&\
6263
export MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET} &&\
63-
export CFLAGS=${CFLAGS_DEPS} &&\
64-
export LDFLAGS=${LDFLAGS_DEPS} &&\python/svn/bison/scripts/
64+
export CFLAGS=${CFLAGS} &&\
65+
export LDFLAGS=${LDFLAGS} &&\
6566
./configure --prefix=${PREFIX} &&\
6667
make -j3 install &&\
6768
cp objs/.libs/libfreetype.a . &&\
@@ -74,15 +75,23 @@ deps: zlib png freetype
7475
mpl_build:
7576
export PKG_CONFIG_PATH=${PKG_CONFIG_PATH} &&\
7677
export MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET} &&\
77-
export CFLAGS=${CFLAGS_DEPS} &&\
78-
export LDFLAGS=${LDFLAGS_DEPS} &&\
79-
python setup.py build
78+
export CFLAGS=${CFLAGS} &&\
79+
export LDFLAGS=${LDFLAGS} &&\
80+
${PYTHON} setup.py build
8081

8182
mpl_install:
8283
export PKG_CONFIG_PATH=${PKG_CONFIG_PATH} &&\
8384
export MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET} &&\
84-
export CFLAGS=${CFLAGS_DEPS} &&\
85-
export LDFLAGS=${LDFLAGS_DEPS} &&\
86-
export LD_LIBRARY_PATH=${PREFIX}/lib &&\
87-
export DYLD_LIBRARY_PATH=${PREFIX}/lib &&\
88-
python setup.py install --prefix=${PREFIX}
85+
export CFLAGS=${CFLAGS} &&\
86+
export LDFLAGS=${LDFLAGS} &&\
87+
${PYTHON} setup.py install --prefix=${PREFIX}
88+
89+
90+
binaries:
91+
unset PKG_CONFIG_PATH &&\
92+
cp release/osx/data/setup.cfg release/osx/data/ReadMe.txt . &&\
93+
export CFLAGS=${CFLAGS} &&\
94+
export LDFLAGS=${LDFLAGS} &&\
95+
/Library/Frameworks/Python.framework/Versions/${PYVERSION}/bin/bdist_mpkg --readme=ReadMe.txt &&\
96+
hdiutil create -srcdir dist/matplotlib-${MPLVERSION}-py${PYVERSION}-macosx10.5.mpkg dist/matplotlib-${MPLVERSION}-py${PYVERSION}-macosx10.5.dmg &&\
97+
${PYTHON} setupegg.py bdist_egg

0 commit comments

Comments
 (0)