DeprecationWarning: distutils package and distutils.sysconfig module deprecated

Simon Glass sjg at chromium.org
Wed Nov 10 17:31:27 CET 2021


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
>
> 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