On Tue, Nov 2, 2021 at 11:02 AM Ross Burton wrote: > Our patched python3-config uses distutils, but that will emit a > DeprecationWarning when imported. This isn't useful when using the > output of python3-config to find include paths. So shouldn’t we fix python3-config to not use distutils and switch to setup tools instead ? I am afraid that masking the warning will come biting soon when this is turned into a hard error > > > This isn't a huge problem typically as the warning goes to stderr, but > some build systems read both stdout and stderr. > > Signed-off-by: Ross Burton > --- > meta/recipes-devtools/python/python3/python-config.patch | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/meta/recipes-devtools/python/python3/python-config.patch > b/meta/recipes-devtools/python/python3/python-config.patch > index d0ddbbc7fd..c53f646af3 100644 > --- a/meta/recipes-devtools/python/python3/python-config.patch > +++ b/meta/recipes-devtools/python/python3/python-config.patch > @@ -14,7 +14,6 @@ as appropriate. > Upstream-Status: Inappropriate [Embedded Specific] > > Signed-off-by: Tyler Hall > -: > > --- > Misc/python-config.in | 10 +++++----- > @@ -24,11 +23,13 @@ diff --git a/Misc/python-config.in b/Misc/ > python-config.in > index ebd99da..13e57ae 100644 > --- a/Misc/python-config.in > +++ b/Misc/python-config.in > -@@ -6,7 +6,7 @@ > +@@ -6,7 +6,9 @@ > import getopt > import os > import sys > -import sysconfig > ++import warnings > ++warnings.filterwarnings("ignore", category=DeprecationWarning) > +from distutils import sysconfig > > valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags', > -- > 2.25.1 > > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#157806): > https://lists.openembedded.org/g/openembedded-core/message/157806 > Mute This Topic: https://lists.openembedded.org/mt/86772899/1997914 > Group Owner: openembedded-core+owner@lists.openembedded.org > Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [ > raj.khem@gmail.com] > -=-=-=-=-=-=-=-=-=-=-=- > >