]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
python3: Don't try to remove setuptools outside the toolchain stage
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 16 Sep 2025 10:01:32 +0000 (10:01 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 16 Sep 2025 10:01:32 +0000 (10:01 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lfs/python3

index 4e5afa2857fee5a96de5939a589434a0c943b7ab..10e85b37ecd2335a3827d4434721015ad6d3d50b 100644 (file)
@@ -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)