Skip to content

Commit b578cea

Browse files
rgommersdnicolodi
authored andcommitted
MAINT: improve error message for package with purelib/platlib split
Follows up on user feedback in gh-377.
1 parent 7f440df commit b578cea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mesonpy/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,8 @@ def _map_to_wheel(sources: Dict[str, Dict[str, Any]]) -> DefaultDict[str, List[T
170170
that = os.fspath(other / next(d for d, s in wheel_files[other] if d.parts[0] == destination.parts[1]))
171171
raise BuildError(
172172
f'The {package} package is split between {path} and {other}: '
173-
f'{this!r} and {that!r}, a "pure: false" argument may be missing in meson.build')
173+
f'{this!r} and {that!r}, a "pure: false" argument may be missing in meson.build. '
174+
f'It is recommended to set it in "import(\'python\').find_installation()"')
174175

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

0 commit comments

Comments
 (0)