Skip to content

Commit 79d3369

Browse files
committed
Merge Darren's win32 build changes to the maintenance branch (since
they'll be handy there also). svn path=/branches/v0_91_maint/; revision=4846
1 parent 5483c27 commit 79d3369

File tree

2 files changed

+16
-13
lines changed

2 files changed

+16
-13
lines changed

CHANGELOG

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2008-01-10 Fix bug when displaying a tick value offset with scientific
2+
notation. (Manifests itself as a warning that the \times
3+
symbol can not be found). - MGD
4+
5+
2008-01-10 Use setup.cfg to set the default parameters (tkagg,
6+
numpy) when building windows installers - DSD
7+
18
===============================================================
29
2008-01-06 Released 0.91.2 at revision 4802
310

setup.py

+9-13
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"""
99

1010
# This dict will be updated as we try to select the best option during
11-
# the build process. However, values in setup.cfg will be used, if
11+
# the build process. However, values in setup.cfg will be used, if
1212
# defined.
1313
rc = {'backend':'Agg', 'numerix':'numpy'}
1414

@@ -36,7 +36,7 @@
3636

3737
if major==2 and minor1<3 or major<2:
3838
raise SystemExit("""matplotlib requires Python 2.3 or later.""")
39-
39+
4040
import glob
4141
from distutils.core import setup
4242
from setupext import build_agg, build_gtkagg, build_tkagg, build_wxagg,\
@@ -112,15 +112,15 @@
112112
subprocess_dir = os.path.dirname(subprocess.__file__)
113113
if subprocess_dir.endswith('.egg/subprocess'):
114114
havesubprocess = False
115-
115+
116116
if not havesubprocess:
117117
packages.append('subprocess')
118118
if sys.platform == 'win32':
119119
build_subprocess(ext_modules, packages)
120120

121121
if not check_for_freetype():
122122
sys.exit(1)
123-
123+
124124
build_ft2font(ext_modules, packages)
125125
build_ttconv(ext_modules, packages)
126126
build_contour(ext_modules, packages)
@@ -145,7 +145,7 @@
145145
build_windowing(ext_modules, packages)
146146

147147
# the options can be True, False, or 'auto'. If True, try to build
148-
# regardless of the lack of dependencies. If auto, silently skip
148+
# regardless of the lack of dependencies. If auto, silently skip
149149
# when dependencies are missing.
150150
if options['build_tkagg']:
151151
if check_for_tk() or (options['build_tkagg'] is True):
@@ -188,12 +188,12 @@
188188

189189
if hasdatetime: # dates require python23 datetime
190190
# only install pytz and dateutil if the user hasn't got them
191-
191+
192192
def add_pytz():
193193
packages.append('pytz')
194194
resources = ['zone.tab', 'locales/pytz.pot']
195195
# install pytz subdirs
196-
for dirpath, dirname, filenames in os.walk(os.path.join('lib', 'pytz',
196+
for dirpath, dirname, filenames in os.walk(os.path.join('lib', 'pytz',
197197
'zoneinfo')):
198198
if '.svn' not in dirpath:
199199
# remove the 'lib/pytz' part of the path
@@ -237,12 +237,8 @@ def add_dateutil():
237237
print_line()
238238

239239
# Write the default matplotlibrc file
240-
if sys.platform=='win32':
241-
rc['backend'] = 'TkAgg'
242-
rc['numerix'] = 'numpy'
243-
else:
244-
if options['backend']: rc['backend'] = options['backend']
245-
if options['numerix']: rc['numerix'] = options['numerix']
240+
if options['backend']: rc['backend'] = options['backend']
241+
if options['numerix']: rc['numerix'] = options['numerix']
246242
template = file('matplotlibrc.template').read()
247243
file('lib/matplotlib/mpl-data/matplotlibrc', 'w').write(template%rc)
248244

0 commit comments

Comments
 (0)