qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tests/vm: use the default system python for NetBSD
@ 2023-03-29 12:46 Daniel P. Berrangé
  2023-03-29 13:04 ` Paolo Bonzini
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Daniel P. Berrangé @ 2023-03-29 12:46 UTC (permalink / raw)
  To: qemu-devel
  Cc: Wainer dos Santos Moschetta, Beraldo Leal,
	Philippe Mathieu-Daudé, Thomas Huth, Reinoud Zandijk,
	Warner Losh, Alex Bennée, Ryo ONODERA, Kyle Evans,
	Daniel P. Berrangé

Currently our NetBSD VM recipe requests instal of the python37 package
and explicitly tells QEMU to use that version of python. Since the
NetBSD base ISO was updated to version 9.3 though, the default system
python version is 3.9 which is sufficiently new for QEMU to rely on.
Rather than requesting an older python, just test against the default
system python which is what most users will have.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
---
 tests/vm/netbsd | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/tests/vm/netbsd b/tests/vm/netbsd
index aa54338dfa..0b9536ca17 100755
--- a/tests/vm/netbsd
+++ b/tests/vm/netbsd
@@ -30,7 +30,6 @@ class NetBSDVM(basevm.BaseVM):
         "git-base",
         "pkgconf",
         "xz",
-        "python37",
         "ninja-build",
 
         # gnu tools
@@ -66,7 +65,7 @@ class NetBSDVM(basevm.BaseVM):
         mkdir src build; cd src;
         tar -xf /dev/rld1a;
         cd ../build
-        ../src/configure --python=python3.7 --disable-opengl {configure_opts};
+        ../src/configure --disable-opengl {configure_opts};
         gmake --output-sync -j{jobs} {target} {verbose};
     """
     poweroff = "/sbin/poweroff"
-- 
2.39.1



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

* Re: [PATCH] tests/vm: use the default system python for NetBSD
  2023-03-29 12:46 [PATCH] tests/vm: use the default system python for NetBSD Daniel P. Berrangé
@ 2023-03-29 13:04 ` Paolo Bonzini
  2023-03-29 13:16 ` Philippe Mathieu-Daudé
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Paolo Bonzini @ 2023-03-29 13:04 UTC (permalink / raw)
  To: Daniel P. Berrangé, qemu-devel
  Cc: Wainer dos Santos Moschetta, Beraldo Leal,
	Philippe Mathieu-Daudé, Thomas Huth, Reinoud Zandijk,
	Warner Losh, Alex Bennée, Ryo ONODERA, Kyle Evans

On 3/29/23 14:46, Daniel P. Berrangé wrote:
> Currently our NetBSD VM recipe requests instal of the python37 package
> and explicitly tells QEMU to use that version of python. Since the
> NetBSD base ISO was updated to version 9.3 though, the default system
> python version is 3.9 which is sufficiently new for QEMU to rely on.
> Rather than requesting an older python, just test against the default
> system python which is what most users will have.
> 
> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
> ---
>   tests/vm/netbsd | 3 +--
>   1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/tests/vm/netbsd b/tests/vm/netbsd
> index aa54338dfa..0b9536ca17 100755
> --- a/tests/vm/netbsd
> +++ b/tests/vm/netbsd
> @@ -30,7 +30,6 @@ class NetBSDVM(basevm.BaseVM):
>           "git-base",
>           "pkgconf",
>           "xz",
> -        "python37",
>           "ninja-build",
>   
>           # gnu tools
> @@ -66,7 +65,7 @@ class NetBSDVM(basevm.BaseVM):
>           mkdir src build; cd src;
>           tar -xf /dev/rld1a;
>           cd ../build
> -        ../src/configure --python=python3.7 --disable-opengl {configure_opts};
> +        ../src/configure --disable-opengl {configure_opts};
>           gmake --output-sync -j{jobs} {target} {verbose};
>       """
>       poweroff = "/sbin/poweroff"

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>



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

* Re: [PATCH] tests/vm: use the default system python for NetBSD
  2023-03-29 12:46 [PATCH] tests/vm: use the default system python for NetBSD Daniel P. Berrangé
  2023-03-29 13:04 ` Paolo Bonzini
@ 2023-03-29 13:16 ` Philippe Mathieu-Daudé
  2023-03-29 17:08 ` Alex Bennée
  2023-04-12 20:59 ` John Snow
  3 siblings, 0 replies; 5+ messages in thread
From: Philippe Mathieu-Daudé @ 2023-03-29 13:16 UTC (permalink / raw)
  To: Daniel P. Berrangé, qemu-devel
  Cc: Wainer dos Santos Moschetta, Beraldo Leal, Thomas Huth,
	Reinoud Zandijk, Warner Losh, Alex Bennée, Ryo ONODERA,
	Kyle Evans

On 29/3/23 14:46, Daniel P. Berrangé wrote:
> Currently our NetBSD VM recipe requests instal of the python37 package
> and explicitly tells QEMU to use that version of python. Since the
> NetBSD base ISO was updated to version 9.3 though, the default system
> python version is 3.9 which is sufficiently new for QEMU to rely on.
> Rather than requesting an older python, just test against the default
> system python which is what most users will have.
> 
> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
> ---
>   tests/vm/netbsd | 3 +--
>   1 file changed, 1 insertion(+), 2 deletions(-)

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



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

* Re: [PATCH] tests/vm: use the default system python for NetBSD
  2023-03-29 12:46 [PATCH] tests/vm: use the default system python for NetBSD Daniel P. Berrangé
  2023-03-29 13:04 ` Paolo Bonzini
  2023-03-29 13:16 ` Philippe Mathieu-Daudé
@ 2023-03-29 17:08 ` Alex Bennée
  2023-04-12 20:59 ` John Snow
  3 siblings, 0 replies; 5+ messages in thread
From: Alex Bennée @ 2023-03-29 17:08 UTC (permalink / raw)
  To: Daniel P. Berrangé
  Cc: qemu-devel, Wainer dos Santos Moschetta, Beraldo Leal,
	Philippe Mathieu-Daudé, Thomas Huth, Reinoud Zandijk,
	Warner Losh, Ryo ONODERA, Kyle Evans


Daniel P. Berrangé <berrange@redhat.com> writes:

> Currently our NetBSD VM recipe requests instal of the python37 package
> and explicitly tells QEMU to use that version of python. Since the
> NetBSD base ISO was updated to version 9.3 though, the default system
> python version is 3.9 which is sufficiently new for QEMU to rely on.
> Rather than requesting an older python, just test against the default
> system python which is what most users will have.
>
> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>

Queued to for-8.0/more-misc-fixes, thanks.

-- 
Alex Bennée
Virtualisation Tech Lead @ Linaro


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

* Re: [PATCH] tests/vm: use the default system python for NetBSD
  2023-03-29 12:46 [PATCH] tests/vm: use the default system python for NetBSD Daniel P. Berrangé
                   ` (2 preceding siblings ...)
  2023-03-29 17:08 ` Alex Bennée
@ 2023-04-12 20:59 ` John Snow
  3 siblings, 0 replies; 5+ messages in thread
From: John Snow @ 2023-04-12 20:59 UTC (permalink / raw)
  To: Daniel P. Berrangé
  Cc: qemu-devel, Wainer dos Santos Moschetta, Beraldo Leal,
	Philippe Mathieu-Daudé, Thomas Huth, Reinoud Zandijk,
	Warner Losh, Alex Bennée, Ryo ONODERA, Kyle Evans,
	Paolo Bonzini

On Wed, Mar 29, 2023 at 8:47 AM Daniel P. Berrangé <berrange@redhat.com> wrote:
>
> Currently our NetBSD VM recipe requests instal of the python37 package
> and explicitly tells QEMU to use that version of python. Since the
> NetBSD base ISO was updated to version 9.3 though, the default system
> python version is 3.9 which is sufficiently new for QEMU to rely on.
> Rather than requesting an older python, just test against the default
> system python which is what most users will have.

Is this the default Python, or does it just happen to be the python
that one of our other dependencies claims to require? From my notes on
the mkvenv.py work, I had actually changed this over to requiring
Python 3.10, because it appeared at the time that NetBSD only shipped
pip for 3.10.

e.g. https://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/index-all.html
you can see here we've got "py310-pip" but I don't see "py39-pip". The
only other pip I see is py27-pip.

The impression I got was:

1) There's no such thing as a "default" python for NetBSD,
2) The best Python to use on this platform is currently 3.10.

I'm not very familiar with NetBSD though, so it's definitely possible
I misunderstood something.

--js

>
> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
> ---
>  tests/vm/netbsd | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/tests/vm/netbsd b/tests/vm/netbsd
> index aa54338dfa..0b9536ca17 100755
> --- a/tests/vm/netbsd
> +++ b/tests/vm/netbsd
> @@ -30,7 +30,6 @@ class NetBSDVM(basevm.BaseVM):
>          "git-base",
>          "pkgconf",
>          "xz",
> -        "python37",
>          "ninja-build",
>
>          # gnu tools
> @@ -66,7 +65,7 @@ class NetBSDVM(basevm.BaseVM):
>          mkdir src build; cd src;
>          tar -xf /dev/rld1a;
>          cd ../build
> -        ../src/configure --python=python3.7 --disable-opengl {configure_opts};
> +        ../src/configure --disable-opengl {configure_opts};
>          gmake --output-sync -j{jobs} {target} {verbose};
>      """
>      poweroff = "/sbin/poweroff"
> --
> 2.39.1
>
>



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

end of thread, other threads:[~2023-04-12 21:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-29 12:46 [PATCH] tests/vm: use the default system python for NetBSD Daniel P. Berrangé
2023-03-29 13:04 ` Paolo Bonzini
2023-03-29 13:16 ` Philippe Mathieu-Daudé
2023-03-29 17:08 ` Alex Bennée
2023-04-12 20:59 ` John Snow

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).