mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-15 16:07:26 +00:00
nftables: avoid python dependencies when building without python
Use inherit_defer instead of inhert. This way, setuptools3 is not
inherited when python is removed from PACKAGECONFIG in a .bbappend file.
This avoids dependencies added by setuptools3.
Don't add nftables-python to PACKAGES if python is disabled. It adds
extra runtime dependencies on python3-core and python3-json.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 5cf3766cf6)
Signed-off-by: Nikhil R <nikhil.r@kpit.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
committed by
Armin Kuster
parent
5d3fb27a4e
commit
aff78ae800
@@ -35,9 +35,9 @@ EXTRA_OECONF = " \
|
|||||||
|
|
||||||
SETUPTOOLS_SETUP_PATH = "${S}/py"
|
SETUPTOOLS_SETUP_PATH = "${S}/py"
|
||||||
|
|
||||||
inherit ${@bb.utils.contains('PACKAGECONFIG', 'python', 'setuptools3', '', d)}
|
inherit_defer ${@bb.utils.contains('PACKAGECONFIG', 'python', 'setuptools3', '', d)}
|
||||||
|
|
||||||
PACKAGES =+ "${PN}-python"
|
PACKAGES =+ "${@bb.utils.contains('PACKAGECONFIG', 'python', '${PN}-python', '', d)}"
|
||||||
FILES:${PN}-python = "${PYTHON_SITEPACKAGES_DIR}"
|
FILES:${PN}-python = "${PYTHON_SITEPACKAGES_DIR}"
|
||||||
RDEPENDS:${PN}-python = "python3-core python3-json ${PN}"
|
RDEPENDS:${PN}-python = "python3-core python3-json ${PN}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user