Skip to content

Commit

Permalink
ENH: reduce the output generated by the installation step
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dnicolodi authored and rgommers committed Apr 21, 2023
1 parent 7194844 commit 55afbc0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mesonpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,6 @@ def build(self, directory: Path) -> pathlib.Path:
with mesonpy._wheelfile.WheelFile(wheel_file, 'w') as whl:
self._wheel_write_metadata(whl)

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

@classmethod
@contextlib.contextmanager
Expand Down

0 comments on commit 55afbc0

Please sign in to comment.