python: Add proper support for pyproject.toml-based builds
authorJeffery To <jeffery.to@gmail.com>
Fri, 17 Feb 2023 17:13:22 +0000 (01:13 +0800)
committerJosef Schlehofer <pepe.schlehofer@gmail.com>
Tue, 31 Oct 2023 09:03:43 +0000 (10:03 +0100)
commit8b982ebc56d9a75764fbcf84ecd7f8d276df4508
tree83d2a241003066cf6405d3a995a0450c0d26fb80
parentb552374a3ed87603ffcaa818379a7d49de9ab576
python: Add proper support for pyproject.toml-based builds

This removes the changes made in
61f202c0170785addbbc449e4de61cc5886f0833 and adds actual support for
pyproject.toml-based (PEP 517) builds of Python packages.

Packages can force the use of the old build process by setting
PYTHON3_PKG_FORCE_DISTUTILS_SETUP:=1; this should only be a temporary
workaround until the package can be updated/fixed to use the new build
process.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 5156c0c82bcb18481bf588ba4b1ff67c12422a80)
lang/python/python3-host.mk
lang/python/python3-package.mk
lang/python/python3/Makefile
lang/python/setup.py.shim [deleted file]