[neon/backports-noble/wireplumber-noble/Neon/release] debian: workaround python-setuptools/gir mscv compiler error

Carlos De Maine null at kde.org
Sun Sep 27 07:40:30 BST 2026


Git commit 9a1b103165385980a58a6cc3cc7cb704f280aba5 by Carlos De Maine.
Committed on 27/09/2026 at 06:40.
Pushed by carlosdem into branch 'Neon/release'.

workaround python-setuptools/gir mscv compiler error

(cherry picked from commit b2c2243c92fc07298c583f9608026d330f88a72e)

M  +6    -0    debian/rules

https://invent.kde.org/neon/backports-noble/wireplumber-noble/-/commit/9a1b103165385980a58a6cc3cc7cb704f280aba5

diff --git a/debian/rules b/debian/rules
index a8123ae..09176df 100755
--- a/debian/rules
+++ b/debian/rules
@@ -18,6 +18,12 @@ endif
 	dh $@ --buildsystem=meson
 
 override_dh_auto_configure:
+	@SETUPTOOLS_DISTUTILS=$$(python3 -c "import os, setuptools; print(os.path.join(os.path.dirname(setuptools.__file__), '_distutils'))" 2>/dev/null); \
+	if [ -d "$$SETUPTOOLS_DISTUTILS" ]; then \
+		echo "Injecting shim into setuptools vendored path: $$SETUPTOOLS_DISTUTILS"; \
+		echo "class MSVCCompiler: pass" > "$$SETUPTOOLS_DISTUTILS/msvccompiler.py"; \
+	fi
+
 	dh_auto_configure -- \
 		-Dmodules=true \
 		-Ddaemon=true \


More information about the Neon-commits mailing list