summaryrefslogtreecommitdiff
path: root/lang/python/python3-package.mk
diff options
context:
space:
mode:
authorJeffery To <jeffery.to@gmail.com>2022-03-07 21:29:56 +0800
committerRosen Penev <rosenp@gmail.com>2022-03-17 11:38:19 -0700
commit2f81f907c2ccfc8d905cb0dfc78dbb2ffe75e6c7 (patch)
tree8dbfc777dbdd96f7d2ec8e97462b6798dbaf6b05 /lang/python/python3-package.mk
parent6000735f3446d2e876335122066c28b3f335db1e (diff)
python3: Add Py3Build/InstallBuildDepends recipe
This adds a recipe, Py3Build/InstallBuildDepends, that installs the requirements listed in HOST_PYTHON3_PACKAGE_BUILD_DEPENDS. This allows other (non-Python) packages to install host Python packages by calling this recipe, without having to know the internals of python3-package.mk. This also updates apparmor to call this recipe. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
Diffstat (limited to 'lang/python/python3-package.mk')
-rw-r--r--lang/python/python3-package.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/lang/python/python3-package.mk b/lang/python/python3-package.mk
index 20c8ca58a..c2617f69c 100644
--- a/lang/python/python3-package.mk
+++ b/lang/python/python3-package.mk
@@ -215,10 +215,14 @@ define Py3Build/CheckHostPipVersionMatch
endef
endif
-define Py3Build/Compile/Default
+define Py3Build/InstallBuildDepends
$(if $(PYTHON3_PKG_HOST_PIP_INSTALL_ARGS), \
$(call HostPython3/PipInstall,$(PYTHON3_PKG_HOST_PIP_INSTALL_ARGS)) \
)
+endef
+
+define Py3Build/Compile/Default
+ $(call Py3Build/InstallBuildDepends)
$(call Python3/ModSetup, \
$(PYTHON3_PKG_SETUP_DIR), \
$(PYTHON3_PKG_SETUP_GLOBAL_ARGS) \