Skip to content

Commit a51f38b

Browse files
committed
sync to 0.53
svn path=/trunk/matplotlib/; revision=250
1 parent 2e5e9ea commit a51f38b

File tree

7 files changed

+56
-28
lines changed

7 files changed

+56
-28
lines changed

.matplotlibrc

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
#### MATPLOTLIBRC FORMAT
2-
# This is a sample matplotlib configuration file
3-
# It should be placed in your home dir (Linux and friends) or
4-
# in the matplotlib data path, is, where matplotlib installs it's
5-
# data files (fonts, etc). On windows, this would be, for example,
6-
# C:\Python23\share\matplotlib
2+
#
3+
# This is a sample matplotlib configuration file It should be placed
4+
# in your home dir (Linux and friends) or in the matplotlib data path,
5+
# is, where matplotlib installs it's data files (fonts, etc). On
6+
# windows, this would be, for example, C:\Python23\share\matplotlib
7+
#
8+
# By default, the installer will overwrite the existing file in the
9+
# install path, so if you want to preserve your's, please move it to
10+
# your HOME dir and set the environment variable if necessary.
711
#
812
# This file is best viewed in a editor which supports python mode
913
# syntax highlighting

CHANGELOG

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
New entries should be added at the top
22

3-
2004-04-19 - Fixed vertical alignment bug in PS backend - JDH
3+
4+
5+
------------------------------------------------------------
6+
2004-04-21 matplotlib 0.53 release
7+
8+
2004-04-19 Fixed vertical alignment bug in PS backend - JDH
49

510
2004-04-17 Added support for two scales on the "same axes" with tick
611
different ticking and labeling left right or top bottom.

MANIFEST

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,11 @@ GOALS
55
INSTALL
66
INTERACTIVE
77
KNOWN_BUGS
8-
MANIFEST
98
MANIFEST.in
109
Makefile
1110
README
1211
TODO
1312
__init__.py
14-
postinstall.py
1513
setup.py
1614
setupext.py
1715
agg2/gpc/gpc.h

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
# Copyright (C) 2003 <jdhunter@ace.bsd.uchicago.edu>
33
# $Header$
44
# $Log$
5+
# Revision 1.29 2004/04/21 15:28:55 jdh2358
6+
# sync to 0.53
7+
#
58
# Revision 1.28 2004/04/20 22:53:37 jdh2358
69
# removed tz info from dates; updated htdocs
710
#
@@ -102,7 +105,7 @@ clean:
102105
find . -name "_tmp*.py" | xargs rm -f;\
103106
find . \( -name "*~" -o -name "*.pyc" \) | xargs rm -f;\
104107
find examples \( -name "*.png" -o -name "*.ps" -o -name "*.jpg" -o -name "*.eps" \) | xargs rm -f
105-
find . \( -name "#*" -o -name ".#*" -o -name ".*~" -o -name "*~"\) | xargs rm -f
108+
find . \( -name "#*" -o -name ".#*" -o -name ".*~" -o -name "*~" \) | xargs rm -f
106109

107110

108111
release: ${DISTFILES}

TODO

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,4 +319,8 @@
319319

320320
-- DONE modify pcolor to allow custom cmap
321321

322-
-- Check for empty quote data returns
322+
-- Check for empty quote data returns
323+
324+
-- toolbar not showing up in wx os x
325+
326+
-- fromstring examples need byte order in darwin

setup.py

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
"""
22
matplotlib has added some extension module code which can optionally
33
be built by setting the appropriate flag below.
4+
5+
The GTKAgg and TkAgg will try to build if they detect pygtk or Tkinter
6+
respectively; set them to 0 if you do not want to build them
47
"""
58

69
# build the freetype2 interface - this is required for mathtext
@@ -27,14 +30,16 @@
2730
# high quality image renderer to render to all the GUI windows
2831

2932
# build GTK GUI with Agg renderer ; requires pygtk src distros installed
30-
BUILD_GTKAGG = 0
33+
# Use False or 0 if you don't want to build
34+
BUILD_GTKAGG = 'auto'
3135

3236
# build TK GUI with Agg renderer ; requires Tkinter Python extension
3337
# and Tk includes
34-
BUILD_TKAGG = 0
38+
# Use False or 0 if you don't want to build
39+
BUILD_TKAGG = 'auto'
3540

3641
# build a small extension to manage the focus on win32 platforms.
37-
BUILD_WINDOWING = 0
42+
BUILD_WINDOWING = 'auto'
3843

3944
## You shouldn't need to customize below this point
4045

@@ -51,8 +56,7 @@
5156
data.extend(glob.glob('fonts/ttf/*.ttf'))
5257
data.extend(glob.glob('images/*.xpm'))
5358
data.extend(glob.glob('images/*.ppm'))
54-
if sys.platform != 'win32': # win32 uses postinstaller for conditional install
55-
data.append('.matplotlibrc')
59+
data.append('.matplotlibrc')
5660

5761
data_files=[('share/matplotlib', data),]
5862

@@ -64,12 +68,20 @@
6468

6569

6670
if BUILD_GTKAGG:
67-
BUILD_AGG = 1
68-
build_gtkagg(ext_modules, packages)
71+
72+
try: import gtk
73+
except ImportError: print 'GTKAgg requires pygtk'
74+
else:
75+
BUILD_AGG = 1
76+
build_gtkagg(ext_modules, packages)
6977

7078
if BUILD_TKAGG:
71-
BUILD_AGG = 1
72-
build_tkagg(ext_modules, packages)
79+
try: import Tkinter
80+
except ImportError: print 'GTKAgg requires pygtk'
81+
else:
82+
BUILD_AGG = 1
83+
build_tkagg(ext_modules, packages)
84+
7385

7486
if BUILD_AGG:
7587
BUILD_FT2FONT = 1
@@ -78,7 +90,7 @@
7890
if BUILD_FT2FONT:
7991
build_ft2font(ext_modules, packages)
8092

81-
if BUILD_WINDOWING:
93+
if BUILD_WINDOWING and sys.platform=='win32':
8294
build_windowing(ext_modules, packages)
8395

8496
if BUILD_IMAGE:
@@ -100,5 +112,4 @@
100112
platforms='any',
101113
ext_modules = ext_modules,
102114
data_files = data_files,
103-
scripts=['postinstall.py'],
104115
)

setupext.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
http://matplotlib.sourceforge.net/win32_static.tar.gz and
2626
see the README file in that dir
2727
28-
> python setup.py build --compiler=mingw32 bdist_wininst --install-script postinstall.py > build23.out
28+
> python setup.py build --compiler=mingw32 bdist_wininst > build23.out
2929
3030
"""
3131

@@ -61,8 +61,10 @@
6161

6262

6363
def add_base_flags(module):
64-
incdirs = [os.path.join(p, 'include') for p in basedir[sys.platform]]
65-
libdirs = [os.path.join(p, 'lib') for p in basedir[sys.platform]]
64+
incdirs = [os.path.join(p, 'include') for p in basedir[sys.platform]
65+
if os.path.exists(p)]
66+
libdirs = [os.path.join(p, 'lib') for p in basedir[sys.platform]
67+
if os.path.exists(p)]
6668
module.include_dirs.extend(incdirs)
6769
module.library_dirs.extend(libdirs)
6870

@@ -99,10 +101,11 @@ def add_ft2font_flags(module):
99101
for d in basedirs:
100102
module.include_dirs.append(os.path.join(d, 'freetype2'))
101103
if sys.platform == 'darwin':
102-
module.include_dirs.append(
103-
os.path.join(d, 'lib/freetype2/include'))
104-
module.include_dirs.append(
105-
os.path.join(d, 'lib/freetype2/include/freetype2'))
104+
p = os.path.join(d, 'lib/freetype2/include')
105+
if os.path.exists(p): module.include_dirs.append(p)
106+
p = os.path.join(d, 'lib/freetype2/include/freetype2')
107+
if os.path.exists(p): module.include_dirs.append(p)
108+
106109

107110

108111
if sys.platform == 'win32':

0 commit comments

Comments
 (0)