Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e83e108

Browse filesBrowse files
dopplershifttacaswell
authored andcommitted
Merge pull request #7757 from StephanErb/packaging_size
By default, don't include tests in binary distributions.
1 parent bffe631 commit e83e108
Copy full SHA for e83e108

File tree

Expand file treeCollapse file tree

2 files changed

+6
-4
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+6
-4
lines changed

‎setup.cfg.template

Copy file name to clipboardExpand all lines: setup.cfg.template
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222

2323
[packages]
2424
# 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.
2727
#
28-
#tests = True
28+
#tests = False
2929
#sample_data = True
3030
#toolkits = True
3131
# Tests for the toolkits are only automatically installed

‎setupext.py

Copy file name to clipboardExpand all lines: setupext.py
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,7 @@ class OptionalPackage(SetupPackage):
532532
optional = True
533533
force = False
534534
config_category = "packages"
535+
default_config = "auto"
535536

536537
@classmethod
537538
def get_config(cls):
@@ -541,7 +542,7 @@ def get_config(cls):
541542
insensitively defined as 1, true, yes, on for True) or opted-out (case
542543
insensitively defined as 0, false, no, off for False).
543544
"""
544-
conf = "auto"
545+
conf = cls.default_config
545546
if config is not None and config.has_option(cls.config_category, cls.name):
546547
try:
547548
conf = config.getboolean(cls.config_category, cls.name)
@@ -712,6 +713,7 @@ def get_namespace_packages(self):
712713
class Tests(OptionalPackage):
713714
name = "tests"
714715
nose_min_version = '0.11.1'
716+
default_config = False
715717

716718
def check(self):
717719
super(Tests, self).check()

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.