Skip to content

Commit

Permalink
MAINT: improve error message for package with purelib/platlib split
Browse files Browse the repository at this point in the history
Follows up on user feedback in gh-377.
  • Loading branch information
rgommers authored and dnicolodi committed Apr 28, 2023
1 parent 7f440df commit b578cea
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 @@ -170,7 +170,8 @@ def _map_to_wheel(sources: Dict[str, Dict[str, Any]]) -> DefaultDict[str, List[T
that = os.fspath(other / next(d for d, s in wheel_files[other] if d.parts[0] == destination.parts[1]))
raise BuildError(
f'The {package} package is split between {path} and {other}: '
f'{this!r} and {that!r}, a "pure: false" argument may be missing in meson.build')
f'{this!r} and {that!r}, a "pure: false" argument may be missing in meson.build. '
f'It is recommended to set it in "import(\'python\').find_installation()"')

wheel_files[path].append((pathlib.Path(*destination.parts[1:]), src))
return wheel_files
Expand Down

0 comments on commit b578cea

Please sign in to comment.