[neon/backports-noble/gst-plugins-good1.0-noble/Neon/release] debian: bypass msvccompiler check which causes an error
Carlos De Maine
null at kde.org
Wed Sep 16 02:00:05 BST 2026
Git commit 38f9aa26dd5176da8405f39cf5155935783a9b67 by Carlos De Maine.
Committed on 16/09/2026 at 00:59.
Pushed by carlosdem into branch 'Neon/release'.
bypass msvccompiler check which causes an error
M +7 -9 debian/rules
https://invent.kde.org/neon/backports-noble/gst-plugins-good1.0-noble/-/commit/38f9aa26dd5176da8405f39cf5155935783a9b67
diff --git a/debian/rules b/debian/rules
index a788708..b761eec 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,9 +2,7 @@
include /usr/share/dpkg/default.mk
-$(shell mkdir -p $(CURDIR)/debian/tmp-python/distutils && echo "class MSVCCompiler: pass" > $(CURDIR)/debian/tmp-python/distutils/msvccompiler.py)
-
-export PYTHONPATH := $(CURDIR)/debian/tmp-python:$(PYTHONPATH)
+export PYTHONPATH := $(CURDIR)/debian/shims:$(PYTHONPATH)
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,-z,defs
@@ -68,13 +66,13 @@ endif
%:
dh $@
-execute_before_dh_auto_configure:
- @PYVER=$$(python3 -c "import sys; print(f'{sys.version_info.major}.{sys.version_info.minor}')"); \
- PREFIX_DIR="$$(python3 -c 'import site; print(site.getsitepackages()[0])' 2>/main || echo /usr/lib/python3.$$PYVER/dist-packages)"; \
- mkdir -p $$PREFIX_DIR/distutils; \
- echo "class MSVCCompiler: pass" > $$PREFIX_DIR/distutils/msvccompiler.py
-
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 -- $(conf_flags)
execute_before_dh_auto_clean:
More information about the Neon-commits
mailing list