summaryrefslogtreecommitdiff
path: root/lang/python/python3-host.mk
diff options
context:
space:
mode:
authorJeffery To <jeffery.to@gmail.com>2023-02-18 01:13:22 +0800
committerJosef Schlehofer <pepe.schlehofer@gmail.com>2023-10-31 10:03:43 +0100
commit8b982ebc56d9a75764fbcf84ecd7f8d276df4508 (patch)
tree83d2a241003066cf6405d3a995a0450c0d26fb80 /lang/python/python3-host.mk
parentb552374a3ed87603ffcaa818379a7d49de9ab576 (diff)
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)
Diffstat (limited to 'lang/python/python3-host.mk')
-rw-r--r--lang/python/python3-host.mk6
1 files changed, 0 insertions, 6 deletions
diff --git a/lang/python/python3-host.mk b/lang/python/python3-host.mk
index 54f9bde1e..b272c28ca 100644
--- a/lang/python/python3-host.mk
+++ b/lang/python/python3-host.mk
@@ -98,12 +98,6 @@ HOST_PYTHON3_PIP_VARS:= \
PIP_CONFIG_FILE=/dev/null \
PIP_DISABLE_PIP_VERSION_CHECK=1
-define SetupPyShim
- if [ -f $(1)/pyproject.toml ] && [ ! -f $(1)/setup.py ] ; then \
- $(CP) $(python3_mk_path)setup.py.shim $(1)setup.py ; \
- fi
-endef
-
# Multiple concurrent pip processes can lead to errors or unexpected results: https://github.com/pypa/pip/issues/2361
# $(1) => packages to install
define HostPython3/PipInstall