File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed
tests/packages/subproject Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -8,10 +8,7 @@ requires = ['meson-python']
88
99[tool .meson-python .wheel ]
1010exclude = [
11- # Meson before version 1.3.0 install data files in
12- # ``{datadir}/{project name}/``, later versions install
13- # in the more correct ``{datadir}/{subproject name}/``.
14- ' {datadir}/*/data.txt' ,
11+ ' {datadir}/dep/*.txt' ,
1512 ' {py_purelib}/dep.*' ,
1613]
1714include = [
Original file line number Diff line number Diff line change @@ -6,6 +6,15 @@ project('dep')
66
77py = import (' python' ).find_installation()
88
9- py.install_sources(' dep.py' )
9+ py.install_sources(
10+ ' dep.py' ,
11+ )
1012
11- install_data (' data.txt' )
13+ install_data (
14+ ' data.txt' ,
15+ # Prior to meson 1.3.0, the default install path for subproject data files
16+ # is ``{datadir}/{main-project-name}/``. In later versions it is the more
17+ # correct ``{datadir}/{subproject-name}/``. Specify the install path to
18+ # obtain uniform behavior across different meson versions.
19+ install_dir : ' {datadir}' / meson .project_name(),
20+ )
You can’t perform that action at this time.
0 commit comments