]> git.dujemihanovic.xyz Git - u-boot.git/commit
binman: don't import deprecated distutils package
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 9 Apr 2022 12:53:18 +0000 (14:53 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 25 Apr 2022 14:11:05 +0000 (10:11 -0400)
commitdd2e8ed41555b1f9e139c7be3a073885684670df
tree0a3929150447d090da2d02ca70cb865135058fb3
parent06c73e37b329f6cc564b766cc739dff3c909e8c9
binman: don't import deprecated distutils package

'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@canonical.com>
Reviewed-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
tools/binman/main.py