[PATCH 1/1] binman: don't import deprecated distutils package

Alper Nebi Yasak alpernebiyasak at gmail.com
Sun Apr 10 21:06:57 CEST 2022


On 09/04/2022 15:53, Heinrich Schuchardt wrote:
> 'make tests' fails on Ubuntu 22.04 with:
> 
> binman: ./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
> <unittest.result.TestResult run=428 errors=0 failures=4>
> AssertionError: 0 != 468
> 
> As we don't use Ubuntu 16.04 for our CI anymore drop the import.
> 
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
> ---
>  tools/binman/main.py | 7 -------
>  1 file changed, 7 deletions(-)

I see the same warnings (and error) on Debian unstable as it started
using Python 3.10 by default. This fixes them for me as well.

Reviewed-by: Alper Nebi Yasak <alpernebiyasak at gmail.com>


More information about the U-Boot mailing list