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

Skip to content

Commit 4e1aec9

Browse files
committed
use setup.cfg to set parameters for windows installers
svn path=/trunk/matplotlib/; revision=4837
1 parent 56a8541 commit 4e1aec9

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2008-01-10 Use setup.cfg to set the default parameters (tkagg,
2+
numpy) when building windows installers - DSD
3+
14
===============================================================
25
2008-01-06 Released 0.91.2 at revision 4802
36

setup.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -236,12 +236,8 @@ def add_dateutil():
236236
print_line()
237237

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

0 commit comments

Comments
 (0)