File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Filter options
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Original file line number Diff line number Diff line change 22
22
23
23
[packages]
24
24
# There are a number of subpackages of matplotlib that are considered
25
- # optional. They are all installed by default, but they may be turned
26
- # off here.
25
+ # optional. All except tests are installed by default, but that can
26
+ # be changed here.
27
27
#
28
- #tests = True
28
+ #tests = False
29
29
#sample_data = True
30
30
#toolkits = True
31
31
# Tests for the toolkits are only automatically installed
Original file line number Diff line number Diff line change @@ -532,6 +532,7 @@ class OptionalPackage(SetupPackage):
532
532
optional = True
533
533
force = False
534
534
config_category = "packages"
535
+ default_config = "auto"
535
536
536
537
@classmethod
537
538
def get_config (cls ):
@@ -541,7 +542,7 @@ def get_config(cls):
541
542
insensitively defined as 1, true, yes, on for True) or opted-out (case
542
543
insensitively defined as 0, false, no, off for False).
543
544
"""
544
- conf = "auto"
545
+ conf = cls . default_config
545
546
if config is not None and config .has_option (cls .config_category , cls .name ):
546
547
try :
547
548
conf = config .getboolean (cls .config_category , cls .name )
@@ -712,6 +713,7 @@ def get_namespace_packages(self):
712
713
class Tests (OptionalPackage ):
713
714
name = "tests"
714
715
nose_min_version = '0.11.1'
716
+ default_config = False
715
717
716
718
def check (self ):
717
719
super (Tests , self ).check ()
You can’t perform that action at this time.
0 commit comments