From 70df20086389cbe89c55e94a640579aa7f7a219c Mon Sep 17 00:00:00 2001 From: robojerk Date: Thu, 4 Sep 2025 14:11:58 -0700 Subject: [PATCH] Fix multi-package build: Add missing build module dependency - Add build module check and installation in Makefile - Fix externally-managed-environment error by adding --break-system-packages - Now all 6 packages build successfully: - deb-mock (main package) - deb-mock-cache (cache utilities) - deb-mock-configs (configuration files) - deb-mock-dev (development tools) - deb-mock-filesystem (filesystem layout) - deb-mock-plugins (plugin system) This resolves the issue where only 1 package was being built instead of 6. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5c13b2d..678328d 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,8 @@ all: install # Install the package install: @echo "Installing deb-mock..." - @python3 -c "import setuptools" 2>/dev/null || (echo "Installing setuptools..." && python3 -m pip install setuptools wheel build) + @python3 -c "import setuptools" 2>/dev/null || (echo "Installing setuptools..." && python3 -m pip install setuptools wheel build --break-system-packages) + @python3 -c "import build" 2>/dev/null || (echo "Installing build..." && python3 -m pip install build --break-system-packages) @python3 -m build --wheel @python3 -m pip install dist/*.whl --break-system-packages