[Buildroot] [git commit] package/pkg-python.mk: remove _BASE_BUILD_OPTS variable
Yann E. MORIN
yann.morin.1998 at free.fr
Sat Nov 25 15:40:30 UTC 2023
commit: https://git.buildroot.net/buildroot/commit/?id=ba27abf3566a86ecf2f89c7a4bb1d2c6a50eda89
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
This variable can just as well be merged into _BASE_BUILD_CMD. This is
how it's done for the install opts. And anyway it's only used by
distutils and nowhere else.
Signed-off-by: Arnout Vandecappelle <arnout at mind.be>
Signed-off-by: Yann E. MORIN <yann.morin.1998 at free.fr>
---
package/pkg-python.mk | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/package/pkg-python.mk b/package/pkg-python.mk
index 1fc096efb3..eacf75c165 100644
--- a/package/pkg-python.mk
+++ b/package/pkg-python.mk
@@ -198,8 +198,7 @@ endif
ifeq ($$($(2)_SETUP_TYPE),distutils)
ifeq ($(4),target)
$(2)_BASE_ENV = $$(PKG_PYTHON_DISTUTILS_ENV)
-$(2)_BASE_BUILD_CMD = setup.py build
-$(2)_BASE_BUILD_OPTS = $$(PKG_PYTHON_DISTUTILS_BUILD_OPTS)
+$(2)_BASE_BUILD_CMD = setup.py build $$(PKG_PYTHON_DISTUTILS_BUILD_OPTS)
$(2)_BASE_INSTALL_TARGET_CMD = setup.py install --no-compile $$(PKG_PYTHON_DISTUTILS_INSTALL_TARGET_OPTS)
$(2)_BASE_INSTALL_STAGING_CMD = setup.py install $$(PKG_PYTHON_DISTUTILS_INSTALL_STAGING_OPTS)
else
@@ -335,7 +334,7 @@ define $(2)_BUILD_CMDS
$$($$(PKG)_BASE_ENV) $$($$(PKG)_ENV) \
$$(HOST_DIR)/bin/python3 \
$$($$(PKG)_BASE_BUILD_CMD) \
- $$($$(PKG)_BASE_BUILD_OPTS) $$($$(PKG)_BUILD_OPTS))
+ $$($$(PKG)_BUILD_OPTS))
endef
endif
More information about the buildroot
mailing list