DeprecationWarning: distutils package and distutils.sysconfig module deprecated

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

Hi Marcel,
+Rob Herring might be looking at it.
On Wed, 10 Nov 2021 at 04:15, Marcel Ziswiler marcel.ziswiler@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

On Wed, Nov 10, 2021 at 10:31 AM Simon Glass sjg@chromium.org wrote:
Hi Marcel,
+Rob Herring might be looking at it.
On Wed, 10 Nov 2021 at 04:15, Marcel Ziswiler marcel.ziswiler@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
participants (3)
-
Marcel Ziswiler
-
Rob Herring
-
Simon Glass