yocto-patches.lists.yoctoproject.org archive mirror
 help / color / mirror / Atom feed
* [meta-selinux][PATCH v2 1/2] libselinux-python: fix No module named pip
@ 2025-08-23 19:18 Vincent Davis Jr
  2025-08-23 19:18 ` [meta-selinux][PATCH v2 2/2] selinux-python: " Vincent Davis Jr
  0 siblings, 1 reply; 2+ messages in thread
From: Vincent Davis Jr @ 2025-08-23 19:18 UTC (permalink / raw)
  To: yocto-patches; +Cc: Vincent Davis Jr

When running the do install task run
into No modules named pip.

Add python3-pip-native to DEPENDS
so that pip it available.

Signed-off-by: Vincent Davis Jr <vince@underview.tech>
---
 recipes-security/selinux/libselinux-python_3.9.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-security/selinux/libselinux-python_3.9.bb b/recipes-security/selinux/libselinux-python_3.9.bb
index 8431ca1..a4de036 100644
--- a/recipes-security/selinux/libselinux-python_3.9.bb
+++ b/recipes-security/selinux/libselinux-python_3.9.bb
@@ -19,7 +19,7 @@ SRC_URI += "\
 
 S = "${UNPACKDIR}/${BP}/libselinux"
 
-DEPENDS = "libsepol libpcre2 swig-native python3-setuptools-scm-native"
+DEPENDS = "libsepol libpcre2 swig-native python3-setuptools-scm-native python3-pip-native"
 DEPENDS:append:libc-musl = " fts"
 
 RDEPENDS:${PN} = "libselinux python3-core python3-shell"
-- 
2.43.0



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [meta-selinux][PATCH v2 2/2] selinux-python: fix No module named pip
  2025-08-23 19:18 [meta-selinux][PATCH v2 1/2] libselinux-python: fix No module named pip Vincent Davis Jr
@ 2025-08-23 19:18 ` Vincent Davis Jr
  0 siblings, 0 replies; 2+ messages in thread
From: Vincent Davis Jr @ 2025-08-23 19:18 UTC (permalink / raw)
  To: yocto-patches; +Cc: Vincent Davis Jr

When running the do install task run
into No modules named pip.

Add python3-pip-native to DEPENDS
so that pip it available.

PREFIX variable not being set also
appears to effect whether pip is
found or not. No reason was found
as to why that is.

Signed-off-by: Vincent Davis Jr <vince@underview.tech>
---
 recipes-security/selinux/selinux-python_3.9.bb | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/recipes-security/selinux/selinux-python_3.9.bb b/recipes-security/selinux/selinux-python_3.9.bb
index b452887..88850ad 100644
--- a/recipes-security/selinux/selinux-python_3.9.bb
+++ b/recipes-security/selinux/selinux-python_3.9.bb
@@ -16,7 +16,7 @@ SRC_URI += "file://0001-sepolicy-fix-install-path-for-new-pymodule-sepolicy.patc
 
 S = "${UNPACKDIR}/${BP}/python"
 
-DEPENDS = "libsepol libselinux gettext-native python3-setuptools-scm-native"
+DEPENDS = "libsepol libselinux gettext-native python3-setuptools-scm-native python3-pip-native"
 
 RDEPENDS:${PN} = "\
         python3-core \
@@ -111,7 +111,9 @@ FILES:${PN} += "\
 "
 
 do_install() {
-    oe_runmake DESTDIR="${D}" \
+    oe_runmake \
+        DESTDIR="${D}" \
+        PREFIX=${prefix} \
         PYLIBVER='python${PYTHON_BASEVERSION}' \
         PYTHONLIBDIR='${PYTHON_SITEPACKAGES_DIR}' \
         install
-- 
2.43.0



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-08-23 19:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-23 19:18 [meta-selinux][PATCH v2 1/2] libselinux-python: fix No module named pip Vincent Davis Jr
2025-08-23 19:18 ` [meta-selinux][PATCH v2 2/2] selinux-python: " Vincent Davis Jr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).