> -----Original Message-----
> From: [email protected] <openembedded-
> [email protected]> On Behalf Of Ross Burton
> Sent: den 5 oktober 2022 13:27
> To: [email protected]
> Cc: [email protected]
> Subject: Re: [OE-core] [PATCH] gpgme: Allow setuptools3-base to be
> excluded from the inherit list
> 
> > On 5 Oct 2022, at 11:48, David Bagonyi via lists.openembedded.org 
> > <[email protected]> wrote:
> > PYTHON_INHERIT = "${@bb.utils.contains('PACKAGECONFIG', 'python2', 
> > 'pythonnative', '', d)}"
> > PYTHON_INHERIT .= "${@bb.utils.contains('PACKAGECONFIG', 'python3', 
> > 'python3native python3targetconfig', '', d)}"
> > +PYTHON_INHERIT .= "${@bb.utils.contains('LANGUAGES', 'python', 
> > 'setuptools3-base', '', d)}”
> 
> Note that setuptools3-base itself inherits python3native and
> python3targetconfig.  This is important due to ordering: if python2 is
> selected then pythonnative needs to be inherited *after* setuptools3-base
> so that PYTHON is python2 and not python3.
> 
> However as Py2 has been EOL for nearly three years now, I suggest we just
> rip out all of the python2 parts in the process of fixing the inherit.
> 
> Ross

Also note that the above should use "+=" rather than ".=", as otherwise 
the inherits will be concatenated into a mess without spaces if multiple 
options are enabled at the same time.

//Peter

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#171462): 
https://lists.openembedded.org/g/openembedded-core/message/171462
Mute This Topic: https://lists.openembedded.org/mt/94132547/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to