Skip to content

Commit

Permalink
mesonpy: install project headers
Browse files Browse the repository at this point in the history
Signed-off-by: Filipe Laíns <lains@riseup.net>
  • Loading branch information
FFY00 committed Mar 23, 2022
1 parent f706103 commit b1ae1c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mesonpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class _WheelBuilder():
# that fallback on heuristics.
# see https://github.com/mesonbuild/meson/pull/9474
'platlib': ('{py_platlib}',),
'headers': ('{include}',),
'headers': ('{includedir}',),
'data': ('{datadir}',),
# our custom location
'mesonpy-libs': ('{libdir}', '{libdir_shared}')
Expand Down
1 change: 1 addition & 0 deletions tests/test_wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def test_contents(package_library, wheel_library):

for name, regex in zip(sorted(wheel_contents(artifact)), [
re.escape(f'.library.mesonpy.libs/libexample.{SHARED_LIB_EXT}'),
re.escape('library-1.0.0.data/headers/examplelib.h'),
re.escape('library-1.0.0.data/scripts/example'),
re.escape('library-1.0.0.dist-info/METADATA'),
re.escape('library-1.0.0.dist-info/RECORD'),
Expand Down

0 comments on commit b1ae1c2

Please sign in to comment.