mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-08-11 16:00:09 +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 5cf3766cf6395d4bfa5de20cf7427950ca498eaa) Signed-off-by: Nikhil R <nikhil.r@kpit.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
parent
5d3fb27a4e
commit
aff78ae800
@ -35,9 +35,9 @@ EXTRA_OECONF = " \
|
||||
|
||||
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}"
|
||||
RDEPENDS:${PN}-python = "python3-core python3-json ${PN}"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user