qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH-for-5.0?] configure: Do not leave sphinx in-tree artifacts


From: Eric Blake
Subject: Re: [PATCH-for-5.0?] configure: Do not leave sphinx in-tree artifacts
Date: Fri, 3 Apr 2020 12:37:12 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0

On 4/3/20 11:57 AM, Peter Maydell wrote:
On Fri, 3 Apr 2020 at 17:54, Philippe Mathieu-Daudé <address@hidden> wrote:

When ./configure checks the sphinx version is new enough, it leaves
the docs/sphinx/__pycache__/ directory. Avoid this by using the '-B'
option (don't write .py[co] files on import) via the
PYTHONDONTWRITEBYTECODE environment variable.

Reported-by: Eric Blake <address@hidden>
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>

This only happens for an in-tree build, right? I think in
that case you're kind of OK with having random stuff
left in the source tree... It seems easy enough to suppress
them though, so I guess we might as well.

It happens in VPATH too - and what's more, in VPATH, it is still creating it under srcdir rather than builddir, which feels like unnecessary pollution. I was trying to prove whether 'make distclean' got us back to a pristine state; this was one of the files that escaped 'make distclean', so our choice is to either add it to the clean rules, or to avoid creating it in the first place. I like the approach of not creating it in the first place :)

Reviewed-by: Eric Blake <address@hidden>

That said,

+    PYTHONDONTWRITEBYTECODE=yes "$sphinx_build" -c "$source_path/docs" -b html "$TMPDIR1/sphinx" 
"$TMPDIR1/sphinx/out" >/dev/null 2>&1

is now even a longer line; is it worth adding \-newline to split it up?

--
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org




reply via email to

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