diff mbox series

[001/114] build-appliance-image: do not inherit setuptools

Message ID 20251222200739.2278706-1-alex.kanavin@gmail.com
State New
Headers show
Series [001/114] build-appliance-image: do not inherit setuptools | expand

Commit Message

Alexander Kanavin Dec. 22, 2025, 8:05 p.m. UTC
From: Alexander Kanavin <alex@linutronix.de>

The recipe is using pip, and that doesn't require setuptools. I believe it
was a mix-up from https://bugzilla.yoctoproject.org/show_bug.cgi?id=11022
where the initial idea was to use easy_install from setuptools.

A particular reason to drop the setuptools inherit is that setuptools brings in
python3native class which sets PYTHONNOUSERSITE = "1" to avoid $HOME contamination.
This is causing errors with pip 25.3, which rejects --user option in presence
of that environment variable. This recipe redirects $HOME before running pip,
so contamination is avoided.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
---
 meta/recipes-core/images/build-appliance-image_15.0.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/recipes-core/images/build-appliance-image_15.0.0.bb b/meta/recipes-core/images/build-appliance-image_15.0.0.bb
index 406cd2abee..5a7db7bfb9 100644
--- a/meta/recipes-core/images/build-appliance-image_15.0.0.bb
+++ b/meta/recipes-core/images/build-appliance-image_15.0.0.bb
@@ -22,7 +22,7 @@  APPEND += "rootfstype=ext4 quiet"
 DEPENDS = "zip-native python3-pip-native"
 IMAGE_FSTYPES = "wic.vmdk wic.vhd wic.vhdx"
 
-inherit core-image setuptools3 features_check
+inherit core-image features_check
 
 REQUIRED_DISTRO_FEATURES += "xattr"