[neon/backports-noble/appstream-noble/Neon/release] debian: work around python mscv compilation error
Carlos De Maine
null at kde.org
Sat Sep 26 05:30:22 BST 2026
Git commit 3118c92c591651d24c5573c5f0ceb693c1cbe483 by Carlos De Maine.
Committed on 26/09/2026 at 04:30.
Pushed by carlosdem into branch 'Neon/release'.
work around python mscv compilation error
M +6 -0 debian/rules
https://invent.kde.org/neon/backports-noble/appstream-noble/-/commit/3118c92c591651d24c5573c5f0ceb693c1cbe483
diff --git a/debian/rules b/debian/rules
index 421c06b..a04d743 100755
--- a/debian/rules
+++ b/debian/rules
@@ -30,6 +30,12 @@ endif
dh $@
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 -- $(AS_CONFIGURE_ARGS)
override_dh_missing:
More information about the Neon-commits
mailing list