Skip to content

Commit 55afbc0

Browse files
dnicolodirgommers
authored andcommitted
ENH: reduce the output generated by the installation step
Meson by default outputs the source and the destination of the files being copied. Because of how meson-python sets up the installation destination directory these paths are very long and not interesting for the user. Suppress this output. Also remove the "Copying files to wheel..." log line as it does not add much information. This is mostly done to reduce the number of colors and styles the meson-python output uses.
1 parent 7194844 commit 55afbc0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mesonpy/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,6 @@ def build(self, directory: Path) -> pathlib.Path:
499499
with mesonpy._wheelfile.WheelFile(wheel_file, 'w') as whl:
500500
self._wheel_write_metadata(whl)
501501

502-
print('{light_blue}{bold}Copying files to wheel...{reset}'.format(**_STYLES))
503502
with mesonpy._util.cli_counter(
504503
len(list(itertools.chain.from_iterable(self._wheel_files.values()))),
505504
) as counter:
@@ -816,7 +815,7 @@ def build(self) -> None:
816815
def install(self) -> None:
817816
"""Install the Meson project."""
818817
destdir = os.fspath(self._install_dir)
819-
self._run(['meson', 'install', '--no-rebuild', '--destdir', destdir, *self._meson_args['install']])
818+
self._run(['meson', 'install', '--quiet', '--no-rebuild', '--destdir', destdir, *self._meson_args['install']])
820819

821820
@classmethod
822821
@contextlib.contextmanager

0 commit comments

Comments
 (0)