qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2 07/29] qapi: Turn generators into modules


From: Daniel P . Berrangé
Subject: Re: [Qemu-devel] [PATCH v2 07/29] qapi: Turn generators into modules
Date: Tue, 27 Feb 2018 16:01:24 +0000
User-agent: Mutt/1.9.2 (2017-12-15)

On Tue, Feb 27, 2018 at 09:53:22AM -0600, Eric Blake wrote:
> On 02/11/2018 03:35 AM, Markus Armbruster wrote:
> > The next commit will introduce a common driver program for all
> > generators.  The generators need to be modules for that.  qapi2texi.py
> > already is.  Make the other generators follow suit.
> > 
> > The changes are actually trivial.  Obvious in the diffs once you view
> > them with whitespace changes ignored.
> > 
> > Signed-off-by: Markus Armbruster <address@hidden>
> > Reviewed-by: Eric Blake <address@hidden>
> > Reviewed-by: Marc-André Lureau <address@hidden>
> > ---
> >   scripts/qapi-commands.py   | 43 ++++++++++++++++++--------------
> >   scripts/qapi-event.py      | 43 ++++++++++++++++++--------------
> >   scripts/qapi-introspect.py | 54 ++++++++++++++++++++++------------------
> >   scripts/qapi-types.py      | 56 ++++++++++++++++++++++-------------------
> >   scripts/qapi-visit.py      | 62 
> > +++++++++++++++++++++++++---------------------
> >   5 files changed, 143 insertions(+), 115 deletions(-)
> 
> Urgh. One annoyance of this patch is that if you switch to another branch
> without the patch, leftover .pyc files in the source tree can cause weird
> errors until you 'rm -f scripts/qapi/*.pyc':

Pehaps make our build system set  PYTHONDONTWRITEBYTECODE=1  env variable

  https://docs.python.org/3/using/cmdline.html#envvar-PYTHONDONTWRITEBYTECODE

Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|



reply via email to

[Prev in Thread] Current Thread [Next in Thread]