Skip to content

Commit

Permalink
mesonpy: skip unsure platlib warning on Debian if the file is in modu…
Browse files Browse the repository at this point in the history
…ledir

Signed-off-by: Filipe Laíns <lains@riseup.net>
  • Loading branch information
FFY00 committed Jun 10, 2022
1 parent f0503c9 commit 6e13064
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mesonpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,8 @@ def _map_from_heuristics(self, origin: str, destination: pathlib.Path) -> Option
if search_path.name == 'dist-packages' and search_path.parent.parent.name == 'lib':
calculated_path = destination.relative_to(search_path)
warnings.warn(f'File matched Debian heuristic ({calculated_path}): {origin} ({destination})')
self._warn_unsure_platlib(origin, destination)
if not origin.startswith('{moduledir_shared}'):
self._warn_unsure_platlib(origin, destination)
return 'platlib', calculated_path
# purelib or platlib -- go to wheel root
for scheme in ('purelib', 'platlib'):
Expand Down

0 comments on commit 6e13064

Please sign in to comment.