[PATCH v1 1/1] binman: Do not pollute source tree when build with `make O=...`
Andy Shevchenko
andy.shevchenko at gmail.com
Tue Nov 30 19:58:25 CET 2021
On Tue, Nov 30, 2021 at 8:52 PM Tom Rini <trini at 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.
> Looking over the logs, we force 3.8 to be the minimum
> version, I think it's 3.6. Which means that we aren't documenting the
> minimum version well, and should. But, 3.8 is only 2 years old and I
> always get a little itchy around saying we need tools that feel to me to
> be super recent still.
P.S. scratch above, I have a v2
--
With Best Regards,
Andy Shevchenko
More information about the U-Boot
mailing list