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

Skip to content

Commit 7d85c0e

Browse files
committed
BLD: Install Python files via Meson
1 parent 044a5e5 commit 7d85c0e

File tree

29 files changed

+592
-1163
lines changed

29 files changed

+592
-1163
lines changed

.flake8

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ exclude =
3131
.eggs
3232

3333
per-file-ignores =
34-
setup.py: E402
35-
3634
lib/matplotlib/__init__.py: E402, F401
3735
lib/matplotlib/_animation_data.py: E501
3836
lib/matplotlib/_api/__init__.py: F401

lib/matplotlib/_api/meson.build

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
python_sources = [
2+
'__init__.py',
3+
'deprecation.py',
4+
]
5+
6+
typing_sources = [
7+
'__init__.pyi',
8+
'deprecation.pyi',
9+
]
10+
11+
py3.install_sources(python_sources, typing_sources,
12+
subdir: 'matplotlib/_api')

lib/matplotlib/axes/meson.build

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
python_sources = [
2+
'__init__.py',
3+
'_axes.py',
4+
'_base.py',
5+
'_secondary_axes.py',
6+
]
7+
8+
typing_sources = [
9+
'__init__.pyi',
10+
'_axes.pyi',
11+
'_base.pyi',
12+
'_secondary_axes.pyi',
13+
]
14+
15+
py3.install_sources(python_sources, typing_sources,
16+
subdir: 'matplotlib/axes')

lib/matplotlib/backends/meson.build

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
python_sources = [
2+
'__init__.py',
3+
'backend_agg.py',
4+
'backend_cairo.py',
5+
'_backend_gtk.py',
6+
'backend_gtk3.py',
7+
'backend_gtk3agg.py',
8+
'backend_gtk3cairo.py',
9+
'backend_gtk4.py',
10+
'backend_gtk4agg.py',
11+
'backend_gtk4cairo.py',
12+
'backend_macosx.py',
13+
'backend_mixed.py',
14+
'backend_nbagg.py',
15+
'_backend_pdf_ps.py',
16+
'backend_pdf.py',
17+
'backend_pgf.py',
18+
'backend_ps.py',
19+
'backend_qt.py',
20+
'backend_qtagg.py',
21+
'backend_qtcairo.py',
22+
'backend_qt5.py',
23+
'backend_qt5agg.py',
24+
'backend_qt5cairo.py',
25+
'backend_svg.py',
26+
'backend_template.py',
27+
'_backend_tk.py',
28+
'backend_tkagg.py',
29+
'backend_tkcairo.py',
30+
'backend_webagg.py',
31+
'backend_webagg_core.py',
32+
'backend_wx.py',
33+
'backend_wxagg.py',
34+
'backend_wxcairo.py',
35+
'qt_compat.py',
36+
]
37+
38+
typing_sources = [
39+
# Compiled extension types.
40+
'_backend_agg.pyi',
41+
'_macosx.pyi',
42+
'_tkagg.pyi',
43+
]
44+
45+
py3.install_sources(python_sources, typing_sources,
46+
subdir: 'matplotlib/backends')
47+
48+
subdir('qt_editor')
49+
subdir('web_backend')
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
python_sources = [
2+
'__init__.py',
3+
'_formlayout.py',
4+
'figureoptions.py',
5+
]
6+
7+
typing_sources = [
8+
]
9+
10+
py3.install_sources(python_sources, typing_sources,
11+
subdir: 'matplotlib/backends/qt_editor')
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
install_dir = py3.get_install_dir(subdir: 'matplotlib/backends/web_backend')
2+
3+
install_data(
4+
'all_figures.html',
5+
'ipython_inline_figure.html',
6+
'single_figure.html',
7+
install_tag: 'data',
8+
install_dir: install_dir)
9+
install_subdir('css', install_tag: 'data', install_dir: install_dir)
10+
install_subdir('js', install_tag: 'data', install_dir: install_dir)
11+
install_data(
12+
'nbagg_uat.ipynb',
13+
install_tag: 'tests',
14+
install_dir: install_dir)

lib/matplotlib/meson.build

Lines changed: 154 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,154 @@
1+
python_sources = [
2+
'__init__.py',
3+
'_afm.py',
4+
'_animation_data.py',
5+
'_blocking_input.py',
6+
'_cm.py',
7+
'_cm_listed.py',
8+
'_color_data.py',
9+
'_constrained_layout.py',
10+
'_docstring.py',
11+
'_enums.py',
12+
'_fontconfig_pattern.py',
13+
'_internal_utils.py',
14+
'_layoutgrid.py',
15+
'_mathtext.py',
16+
'_mathtext_data.py',
17+
'_pylab_helpers.py',
18+
'_text_helpers.py',
19+
'_tight_bbox.py',
20+
'_tight_layout.py',
21+
'_type1font.py',
22+
'animation.py',
23+
'artist.py',
24+
'axis.py',
25+
'backend_bases.py',
26+
'backend_managers.py',
27+
'backend_tools.py',
28+
'bezier.py',
29+
'category.py',
30+
'cbook.py',
31+
'cm.py',
32+
'collections.py',
33+
'colorbar.py',
34+
'colors.py',
35+
'container.py',
36+
'contour.py',
37+
'dates.py',
38+
'dviread.py',
39+
'figure.py',
40+
'font_manager.py',
41+
'gridspec.py',
42+
'hatch.py',
43+
'image.py',
44+
'layout_engine.py',
45+
'legend_handler.py',
46+
'legend.py',
47+
'lines.py',
48+
'markers.py',
49+
'mathtext.py',
50+
'mlab.py',
51+
'offsetbox.py',
52+
'patches.py',
53+
'patheffects.py',
54+
'path.py',
55+
'pylab.py',
56+
'pyplot.py',
57+
'quiver.py',
58+
'rcsetup.py',
59+
'sankey.py',
60+
'scale.py',
61+
'spines.py',
62+
'stackplot.py',
63+
'streamplot.py',
64+
'table.py',
65+
'texmanager.py',
66+
'textpath.py',
67+
'text.py',
68+
'ticker.py',
69+
'transforms.py',
70+
'typing.py',
71+
'units.py',
72+
'widgets.py',
73+
]
74+
75+
typing_sources = [
76+
'py.typed',
77+
# Compiled extension types.
78+
'_c_internal_utils.pyi',
79+
'ft2font.pyi',
80+
'_image.pyi',
81+
'_qhull.pyi',
82+
'_tri.pyi',
83+
# Pure Python types.
84+
'__init__.pyi',
85+
'_color_data.pyi',
86+
'_docstring.pyi',
87+
'_enums.pyi',
88+
'_path.pyi',
89+
'_pylab_helpers.pyi',
90+
'_ttconv.pyi',
91+
'animation.pyi',
92+
'artist.pyi',
93+
'axis.pyi',
94+
'backend_bases.pyi',
95+
'backend_managers.pyi',
96+
'backend_tools.pyi',
97+
'bezier.pyi',
98+
'cbook.pyi',
99+
'cm.pyi',
100+
'collections.pyi',
101+
'colorbar.pyi',
102+
'colors.pyi',
103+
'container.pyi',
104+
'contour.pyi',
105+
'dviread.pyi',
106+
'figure.pyi',
107+
'font_manager.pyi',
108+
'gridspec.pyi',
109+
'hatch.pyi',
110+
'image.pyi',
111+
'layout_engine.pyi',
112+
'legend_handler.pyi',
113+
'legend.pyi',
114+
'lines.pyi',
115+
'markers.pyi',
116+
'mathtext.pyi',
117+
'mlab.pyi',
118+
'offsetbox.pyi',
119+
'patches.pyi',
120+
'patheffects.pyi',
121+
'path.pyi',
122+
'quiver.pyi',
123+
'rcsetup.pyi',
124+
'sankey.pyi',
125+
'scale.pyi',
126+
'spines.pyi',
127+
'stackplot.pyi',
128+
'streamplot.pyi',
129+
'table.pyi',
130+
'texmanager.pyi',
131+
'textpath.pyi',
132+
'text.pyi',
133+
'ticker.pyi',
134+
'transforms.pyi',
135+
'widgets.pyi',
136+
]
137+
138+
py3.install_sources(python_sources, typing_sources,
139+
subdir: 'matplotlib')
140+
141+
subdir('_api')
142+
subdir('axes')
143+
subdir('backends')
144+
subdir('projections')
145+
subdir('sphinxext')
146+
subdir('style')
147+
subdir('testing')
148+
subdir('tests')
149+
subdir('tri')
150+
151+
install_subdir(
152+
'mpl-data',
153+
install_tag: 'data',
154+
install_dir: py3.get_install_dir(subdir: 'matplotlib'))
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
python_sources = [
2+
'__init__.py',
3+
'geo.py',
4+
'polar.py',
5+
]
6+
7+
typing_sources = [
8+
'__init__.pyi',
9+
'geo.pyi',
10+
'polar.pyi',
11+
]
12+
13+
py3.install_sources(python_sources, typing_sources,
14+
subdir: 'matplotlib/projections')

lib/matplotlib/sphinxext/meson.build

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
python_sources = [
2+
'__init__.py',
3+
'figmpl_directive.py',
4+
'mathmpl.py',
5+
'plot_directive.py',
6+
]
7+
8+
typing_sources = [
9+
]
10+
11+
py3.install_sources(python_sources, typing_sources,
12+
subdir: 'matplotlib/sphinxext')

lib/matplotlib/style/meson.build

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
python_sources = [
2+
'__init__.py',
3+
'core.py',
4+
]
5+
6+
typing_sources = [
7+
'core.pyi',
8+
]
9+
10+
py3.install_sources(python_sources, typing_sources,
11+
subdir: 'matplotlib/style')
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
python_sources = [
2+
'__init__.py',
3+
'Duration.py',
4+
'EpochConverter.py',
5+
'Epoch.py',
6+
'StrConverter.py',
7+
'UnitDblConverter.py',
8+
'UnitDblFormatter.py',
9+
'UnitDbl.py',
10+
]
11+
12+
typing_sources = [
13+
]
14+
15+
py3.install_sources(python_sources, typing_sources,
16+
subdir: 'matplotlib/testing/jpl_units')

lib/matplotlib/testing/meson.build

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
python_sources = [
2+
'__init__.py',
3+
'_markers.py',
4+
'compare.py',
5+
'conftest.py',
6+
'decorators.py',
7+
'exceptions.py',
8+
'widgets.py',
9+
]
10+
11+
typing_sources = [
12+
'__init__.pyi',
13+
'compare.pyi',
14+
'conftest.pyi',
15+
'decorators.pyi',
16+
'widgets.pyi',
17+
]
18+
19+
py3.install_sources(python_sources, typing_sources,
20+
subdir: 'matplotlib/testing')
21+
22+
subdir('jpl_units')

0 commit comments

Comments
 (0)