File tree 3 files changed +9
-5
lines changed 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,10 @@ tag_svn_revision = 1
7
7
[status]
8
8
# To suppress display of the dependencies and their versions
9
9
# at the top of the build log, uncomment the following line:
10
- #
11
10
#suppress = True
11
+ #
12
+ # Uncomment to insert lots of diagnostic prints in extension code
13
+ #verbose = True
12
14
13
15
[provide_packages]
14
16
# By default, matplotlib checks for a few dependencies and
Original file line number Diff line number Diff line change 7
7
setup.cfg.template for more information.
8
8
"""
9
9
10
-
11
- VERBOSE = False # insert lots of diagnostic prints in extension code
12
-
13
10
# This dict will be updated as we try to select the best option during
14
11
# the build process. However, values in setup.cfg will be used, if
15
12
# defined.
186
183
build_image (ext_modules , packages )
187
184
188
185
for mod in ext_modules :
189
- if VERBOSE :
186
+ if options [ 'verbose' ] :
190
187
mod .extra_compile_args .append ('-DVERBOSE' )
191
188
192
189
print_raw ("" )
Original file line number Diff line number Diff line change 99
99
100
100
# matplotlib build options, which can be altered using setup.cfg
101
101
options = {'display_status' : True ,
102
+ 'verbose' : False ,
102
103
'provide_pytz' : 'auto' ,
103
104
'provide_dateutil' : 'auto' ,
104
105
'provide_configobj' : 'auto' ,
117
118
if os .path .exists ("setup.cfg" ):
118
119
config = ConfigParser .SafeConfigParser ()
119
120
config .read ("setup.cfg" )
121
+
120
122
try : options ['display_status' ] = not config .getboolean ("status" , "suppress" )
121
123
except : pass
122
124
125
+ try : options ['verbose' ] = not config .getboolean ("status" , "verbose" )
126
+ except : pass
127
+
123
128
try : options ['provide_pytz' ] = config .getboolean ("provide_packages" , "pytz" )
124
129
except : options ['provide_pytz' ] = 'auto'
125
130
You can’t perform that action at this time.
0 commit comments