qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-devel@nongnu.org, jsnow@redhat.com, berrange@redhat.com
Subject: Re: [qemu-web PATCH] add post about plans for Python venvs
Date: Wed, 22 Mar 2023 16:39:58 +0100	[thread overview]
Message-ID: <e5f7dc9a-4116-9ffc-670b-c2a6180b1164@redhat.com> (raw)
In-Reply-To: <CAFEAcA8U0bW72SWMK7k0tiFOMMZbk5Cd6kX=SwKFxqiLe0+YEw@mail.gmail.com>

On 3/22/23 16:18, Peter Maydell wrote:
> On Wed, 22 Mar 2023 at 15:15, Paolo Bonzini<pbonzini@redhat.com>  wrote:
>> +Some of these tools are run through the `python3` executable, while others
>> +are invoked directly as `sphinx-build` or `meson`, and this can create
>> +inconsistencies.  For example, QEMU's `configure` script checks for a
>> +minimum version of Python and rejects too-old interpreters.  What would
>> +happen if code run via Sphinx or Meson used a different version?
> ...this is why configure also separately checks that when you run sphinx
> it is executing with a new enough Python version.

Point taken, though "new enough" is not "the same version" used by 
--python or $PYTHON.  I will tweak the end of the introduction as follows:

====
As a result, even if `configure` is told to use `/usr/bin/python3.8` for 
the build, QEMU's custom Sphinx extensions would still run under Python 
3.6.  configure does separately check that Sphinx is executing with a 
new enough Python version, but it would be nice if there were a more 
generic way to prepare a consistent Python environment.

This post will explain how QEMU 8.1 will ensure that a single 
interpreter is used for the whole of the build process.  Getting there 
will require some familiarity with Python packaging, so let's start with 
virtual environments.
====

Paolo



      reply	other threads:[~2023-03-22 15:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-22 15:15 [qemu-web PATCH] add post about plans for Python venvs Paolo Bonzini
2023-03-22 15:18 ` Peter Maydell
2023-03-22 15:39   ` Paolo Bonzini [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e5f7dc9a-4116-9ffc-670b-c2a6180b1164@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=berrange@redhat.com \
    --cc=jsnow@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).