qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] python: mkvenv: fix messages printed by mkvenv
@ 2025-08-22 13:46 Paolo Bonzini
  2025-08-22 14:17 ` Manos Pitsidianakis
  2025-08-22 14:56 ` Philippe Mathieu-Daudé
  0 siblings, 2 replies; 3+ messages in thread
From: Paolo Bonzini @ 2025-08-22 13:46 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-stable, John Snow

The new Matcher class does not have a __str__ implementation, and therefore
it prints the debugging representation of the internal object:

  $ ../configure --enable-rust && make qemu-system-arm --enable-download
  python determined to be '/usr/bin/python3'
  python version: Python 3.13.6
  mkvenv: Creating non-isolated virtual environment at 'pyvenv'
  mkvenv: checking for LegacyMatcher('meson>=1.5.0')
  mkvenv: checking for LegacyMatcher('pycotap>=1.1.0')

Add the method to print the nicer

  mkvenv: checking for meson>=1.5.0
  mkvenv: checking for pycotap>=1.1.0

Cc: qemu-stable@nongnu.org
Cc: John Snow <jsnow@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 python/scripts/mkvenv.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/python/scripts/mkvenv.py b/python/scripts/mkvenv.py
index f102527c4de..9aed266df1b 100644
--- a/python/scripts/mkvenv.py
+++ b/python/scripts/mkvenv.py
@@ -184,6 +184,10 @@ def match(self, version_str: str) -> bool:
             )
         )
 
+    def __str__(self) -> str:
+        """String representation delegated to the backend."""
+        return str(self._m)
+
     def __repr__(self) -> str:
         """Stable debug representation delegated to the backend."""
         return repr(self._m)
-- 
2.50.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] python: mkvenv: fix messages printed by mkvenv
  2025-08-22 13:46 [PATCH] python: mkvenv: fix messages printed by mkvenv Paolo Bonzini
@ 2025-08-22 14:17 ` Manos Pitsidianakis
  2025-08-22 14:56 ` Philippe Mathieu-Daudé
  1 sibling, 0 replies; 3+ messages in thread
From: Manos Pitsidianakis @ 2025-08-22 14:17 UTC (permalink / raw)
  To: Paolo Bonzini; +Cc: qemu-devel, qemu-stable, John Snow

On Fri, Aug 22, 2025 at 4:48 PM Paolo Bonzini <pbonzini@redhat.com> wrote:
>
> The new Matcher class does not have a __str__ implementation, and therefore
> it prints the debugging representation of the internal object:
>
>   $ ../configure --enable-rust && make qemu-system-arm --enable-download
>   python determined to be '/usr/bin/python3'
>   python version: Python 3.13.6
>   mkvenv: Creating non-isolated virtual environment at 'pyvenv'
>   mkvenv: checking for LegacyMatcher('meson>=1.5.0')
>   mkvenv: checking for LegacyMatcher('pycotap>=1.1.0')
>
> Add the method to print the nicer
>
>   mkvenv: checking for meson>=1.5.0
>   mkvenv: checking for pycotap>=1.1.0
>
> Cc: qemu-stable@nongnu.org
> Cc: John Snow <jsnow@redhat.com>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---

Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>

>  python/scripts/mkvenv.py | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/python/scripts/mkvenv.py b/python/scripts/mkvenv.py
> index f102527c4de..9aed266df1b 100644
> --- a/python/scripts/mkvenv.py
> +++ b/python/scripts/mkvenv.py
> @@ -184,6 +184,10 @@ def match(self, version_str: str) -> bool:
>              )
>          )
>
> +    def __str__(self) -> str:
> +        """String representation delegated to the backend."""
> +        return str(self._m)
> +
>      def __repr__(self) -> str:
>          """Stable debug representation delegated to the backend."""
>          return repr(self._m)
> --
> 2.50.1
>
>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] python: mkvenv: fix messages printed by mkvenv
  2025-08-22 13:46 [PATCH] python: mkvenv: fix messages printed by mkvenv Paolo Bonzini
  2025-08-22 14:17 ` Manos Pitsidianakis
@ 2025-08-22 14:56 ` Philippe Mathieu-Daudé
  1 sibling, 0 replies; 3+ messages in thread
From: Philippe Mathieu-Daudé @ 2025-08-22 14:56 UTC (permalink / raw)
  To: Paolo Bonzini, qemu-devel; +Cc: qemu-stable, John Snow

On 22/8/25 15:46, Paolo Bonzini wrote:
> The new Matcher class does not have a __str__ implementation, and therefore
> it prints the debugging representation of the internal object:
> 
>    $ ../configure --enable-rust && make qemu-system-arm --enable-download
>    python determined to be '/usr/bin/python3'
>    python version: Python 3.13.6
>    mkvenv: Creating non-isolated virtual environment at 'pyvenv'
>    mkvenv: checking for LegacyMatcher('meson>=1.5.0')
>    mkvenv: checking for LegacyMatcher('pycotap>=1.1.0')
> 
> Add the method to print the nicer
> 
>    mkvenv: checking for meson>=1.5.0
>    mkvenv: checking for pycotap>=1.1.0
> 
> Cc: qemu-stable@nongnu.org
> Cc: John Snow <jsnow@redhat.com>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
>   python/scripts/mkvenv.py | 4 ++++
>   1 file changed, 4 insertions(+)

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-08-22 14:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-22 13:46 [PATCH] python: mkvenv: fix messages printed by mkvenv Paolo Bonzini
2025-08-22 14:17 ` Manos Pitsidianakis
2025-08-22 14:56 ` Philippe Mathieu-Daudé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).