DeprecationWarning: distutils package and distutils.sysconfig module deprecated

Rob Herring robh at kernel.org
Wed Nov 17 22:40:04 CET 2021


On Wed, Nov 10, 2021 at 10:31 AM Simon Glass <sjg at chromium.org> wrote:
>
> Hi Marcel,
>
> +Rob Herring might be looking at it.
>
> On Wed, 10 Nov 2021 at 04:15, Marcel Ziswiler
> <marcel.ziswiler at toradex.com> wrote:
> >
> > Hi there
> >
> > After migrating to a new Fedora Silverblue 35 based setup with toolbx I get the following while compiling U-
> > Boot. Is/has anybody already looked into this?
> >
> > scripts/dtc/pylibfdt/setup.py:21: DeprecationWarning: The distutils package is deprecated and slated for
> > removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
> >   from distutils.core import setup, Extension

That's fixed in upstream dtc now. At least until 'setup.py' is
deprecated next...

> > tools/binman/binman:12: DeprecationWarning: The distutils package is deprecated and slated for removal in
> > Python 3.12. Use setuptools or check PEP 632 for potential alternatives
> >   from distutils.sysconfig import get_python_lib
> >
> > tools/binman/binman:12: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead
> >   from distutils.sysconfig import get_python_lib
>
> Regards,
> Simon


More information about the U-Boot mailing list