Skip to content

Commit f13a1be

Browse files
authored
Merge pull request #19383 from anntzer/sd
Always include sample_data in installs.
2 parents 99a0960 + f1b703a commit f13a1be

File tree

3 files changed

+1
-20
lines changed

3 files changed

+1
-20
lines changed

setup.cfg.template

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ license_files = LICENSE/*
2121
# considered optional. All except 'tests' data (meaning the baseline
2222
# image files) are installed by default, but that can be changed here.
2323
#tests = False
24-
#sample_data = True
2524

2625
[gui_support]
2726
# Matplotlib supports multiple GUI toolkits, known as backends.

setup.py

-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@
6161
setupext.Platform(),
6262
setupext.FreeType(),
6363
setupext.Qhull(),
64-
setupext.SampleData(),
6564
setupext.Tests(),
6665
setupext.BackendMacOSX(),
6766
]

setupext.py

+1-18
Original file line numberDiff line numberDiff line change
@@ -365,9 +365,7 @@ def get_package_data(self):
365365
return {
366366
'matplotlib': [
367367
'mpl-data/matplotlibrc',
368-
*_pkg_data_helper('matplotlib', 'mpl-data/fonts'),
369-
*_pkg_data_helper('matplotlib', 'mpl-data/images'),
370-
*_pkg_data_helper('matplotlib', 'mpl-data/stylelib'),
368+
*_pkg_data_helper('matplotlib', 'mpl-data'),
371369
*_pkg_data_helper('matplotlib', 'backends/web_backend'),
372370
'*.dll', # Only actually matters on Windows.
373371
],
@@ -478,21 +476,6 @@ def get_extensions(self):
478476
yield ext
479477

480478

481-
class SampleData(OptionalPackage):
482-
"""
483-
This handles the sample data that ships with matplotlib. It is
484-
technically optional, though most often will be desired.
485-
"""
486-
name = "sample_data"
487-
488-
def get_package_data(self):
489-
return {
490-
'matplotlib': [
491-
*_pkg_data_helper('matplotlib', 'mpl-data/sample_data'),
492-
],
493-
}
494-
495-
496479
class Tests(OptionalPackage):
497480
name = "tests"
498481
default_config = False

0 commit comments

Comments
 (0)