From: Stefan Hajnoczi <stefanha@gmail.com>
To: David Michael <fedora.dm0@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] scripts: Support building with Python 3
Date: Wed, 30 Aug 2017 18:15:02 +0100 [thread overview]
Message-ID: <20170830171502.GC24565@stefanha-x1.localdomain> (raw)
In-Reply-To: <87r2w6eq5n.fsf@gmail.com>
On Sat, Aug 19, 2017 at 10:58:44PM -0700, David Michael wrote:
> This allows building with "./configure --python=python3", where
> the python3 program is at least version 3.6. It preserves
> compatibility with Python 2. The changes include:
>
> - Avoiding "print" usage
> - Using bytes with files opened in binary mode
> - Switching .iteritems() to .items()
> - Adding fallback imports for functions moved to other modules
>
> Signed-off-by: David Michael <fedora.dm0@gmail.com>
> ---
>
> Hi,
>
> I've been applying these changes when building on Fedora 26, which does
> not include any Python 2 packages by default. It was tested with Python
> 2.7 and 3.6.
>
> I just saw the list of scripts that need updating on the mailing list,
> and this doesn't cover all of them, but it is enough to build a binary
> for running virtual machines with KVM. Maybe it is still useful as a
> starting point.
>
> Thanks.
>
> David
>
> configure | 6 ++++--
> scripts/qapi.py | 31 ++++++++++++++++++++-----------
> scripts/qapi2texi.py | 10 +++++-----
> scripts/signrom.py | 4 ++--
> 4 files changed, 31 insertions(+), 20 deletions(-)
Cool, thanks for contributing this!
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
next prev parent reply other threads:[~2017-08-30 17:15 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-20 5:58 [Qemu-devel] [PATCH] scripts: Support building with Python 3 David Michael
2017-08-21 14:29 ` Markus Armbruster
2017-08-30 17:09 ` Stefan Hajnoczi
2017-08-31 6:35 ` Markus Armbruster
2017-08-31 10:27 ` Peter Maydell
2017-08-31 10:47 ` Daniel P. Berrange
2017-08-31 10:55 ` Peter Maydell
2017-08-31 11:02 ` Daniel P. Berrange
2017-08-31 12:44 ` Markus Armbruster
2017-08-31 13:22 ` Kashyap Chamarthy
2017-08-31 12:50 ` Peter Maydell
2017-08-31 12:58 ` Markus Armbruster
2017-08-31 13:14 ` Daniel P. Berrange
2017-08-31 13:19 ` Peter Maydell
2017-08-31 13:25 ` Daniel P. Berrange
2017-08-31 13:32 ` Peter Maydell
2017-09-01 19:26 ` Max Reitz
2017-08-31 13:29 ` Peter Maydell
2017-08-30 17:15 ` Stefan Hajnoczi [this message]
2017-09-18 15:36 ` Stefan Hajnoczi
2017-10-02 6:17 ` Markus Armbruster
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=20170830171502.GC24565@stefanha-x1.localdomain \
--to=stefanha@gmail.com \
--cc=fedora.dm0@gmail.com \
--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).