poky/scripts/lib
Tim Orling fe86a14649 recipetool/create_buildsys_python.py: less distutils
'distutils' is deprecated in Python 3.10 with removal in Python 3.12
(~October 2023). Replace 'distutils.command.build_py' with
'setuptools.command.build_py'.

To avoid an AttributeError, we call super().__init__() which provides
the missing 'distribution' attribute. However, for some reason, __init__()
in 'setuptools.command.build_py.build_py' class requires a 'dist' positional
argument which must be a 'Distribution' instance. It is not clear why
'distutils.command.build_py.build_py' class does not require this.

There is still a check which decides to inherit setuptools3 vs distutils3
that will need to be refactored when we add pyproject.toml and setup.cfg
support for more modern PEP 517 packaging.

Once distutils3.bbclass is dropped, any recipe inheriting distutils3
will throw a parsing error. The plan is to move distutils*.bbclasses to
meta-python. However if meta-python is not in bblayers, the parsing
error would still occur.

[YOCTO #14610]

(From OE-Core rev: 619a3eb1266459daf16e10386113e9201fbf9cf5)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-01-12 21:09:02 +00:00
..
build_perf meta: correct collections vs collections.abc deprecation 2021-09-19 11:33:14 +01:00
checklayer yocto-check-layer: Relax README case checks 2021-12-04 23:39:52 +00:00
devtool meta: Drop useless class 2021-09-23 13:49:11 +01:00
recipetool recipetool/create_buildsys_python.py: less distutils 2022-01-12 21:09:02 +00:00
resulttool resulttool/log: Add ability to dump ltp logs as well as ptest 2020-05-27 10:22:31 +01:00
wic scripts: Update to use exec_module() instead of load_module() 2022-01-05 17:18:16 +00:00
argparse_oe.py meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
buildstats.py scripts/buildstats-diff: Add option to filter tasks 2019-07-17 09:36:35 +01:00
scriptpath.py meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
scriptutils.py scripts: Update to use exec_module() instead of load_module() 2022-01-05 17:18:16 +00:00