From: Tom Rini <trini@konsulko.com>
To: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
U-Boot Mailing List <u-boot@lists.denx.de>,
Simon Glass <sjg@chromium.org>
Subject: Re: [PATCH v1 1/1] binman: Do not pollute source tree when build with `make O=...`
Date: Tue, 30 Nov 2021 14:23:11 -0500 [thread overview]
Message-ID: <20211130192311.GL24579@bill-the-cat> (raw)
In-Reply-To: <CAHp75VcU=2VPBU1xnKdPK6FSc_f7wb8y_WYPKDOgw9Mn7VCXYA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1513 bytes --]
On Tue, Nov 30, 2021 at 09:10:11PM +0200, Andy Shevchenko wrote:
> On Tue, Nov 30, 2021 at 9:06 PM Tom Rini <trini@konsulko.com> wrote:
> > On Tue, Nov 30, 2021 at 08:58:25PM +0200, Andy Shevchenko wrote:
> > > On Tue, Nov 30, 2021 at 8:52 PM Tom Rini <trini@konsulko.com> wrote:
> > > > On Tue, Nov 30, 2021 at 09:42:04PM +0300, Andy Shevchenko wrote:
> > > > > +#
> > > > > +# Do not pollute source tree with cache files:
> > > > > +# https://stackoverflow.com/a/60024195/2511795
> > > > > +# https://bugs.python.org/issue33499
> > > > > +#
> > > > > +sys.pycache_prefix = os.path.relpath(os.path.dirname(sys.argv[0]), os.environ['srctree'])
> > > > > +
> > > > > # Bring in the patman and dtoc libraries (but don't override the first path
> > > > > # in PYTHONPATH)
> > > > > our_path = os.path.dirname(os.path.realpath(__file__))
> > > >
> > > > Do we need some wrapper around this so it doesn't blow up on older than
> > > > Python 3.8?
> > >
> > > Why does it blow? Some global variables which won't be used by older versions.
> >
> > Does it? I don't know, I wasn't clear enough, sorry. What happens on
> > an older python here? Silent ignore is fine.
>
> Usually that's the idea that new features are hardly tried to be
> backward compatible (yes, I know that the history of Python had a lot
> of counter examples, but still). In any case, that one was never used
> before.
>
> You may try yourself, btw:
>
> sys.foobar = "blablabla"
Ah ok, thanks!
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
prev parent reply other threads:[~2021-11-30 19:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-30 18:42 [PATCH v1 1/1] binman: Do not pollute source tree when build with `make O=...` Andy Shevchenko
2021-11-30 18:52 ` Tom Rini
2021-11-30 18:58 ` Andy Shevchenko
2021-11-30 19:06 ` Tom Rini
2021-11-30 19:10 ` Andy Shevchenko
2021-11-30 19:23 ` Tom Rini [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=20211130192311.GL24579@bill-the-cat \
--to=trini@konsulko.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=andy.shevchenko@gmail.com \
--cc=sjg@chromium.org \
--cc=u-boot@lists.denx.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.