From 8e9dd5d165b1cbb6b9ebd6d1e4bd0a7a2af0a3dd Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 16 Sep 2025 10:01:32 +0000 Subject: [PATCH] python3: Don't try to remove setuptools outside the toolchain stage Signed-off-by: Michael Tremer --- lfs/python3 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lfs/python3 b/lfs/python3 index 4e5afa285..10e85b37e 100644 --- a/lfs/python3 +++ b/lfs/python3 @@ -113,7 +113,9 @@ else endif # Remove the bundled setuptools directories - cd /usr/lib/python3.10/site-packages/ && rm -r setuptools* +ifeq "$(ROOT)" "" + rm -rfv /usr/lib/python3.10/site-packages/setuptools* +endif @rm -rf $(DIR_APP) @$(POSTBUILD) -- 2.47.3