[elbe-devel] [PATCH 07/10] debian: don't write bytecode during build

Thomas Weißschuh thomas.weissschuh at linutronix.de
Fri May 3 10:31:22 CEST 2024


dh-python already takes care of bytecode files.

Also avoids warnings like:
    dh_missing: warning: usr/lib/python3.11/dist-packages/elbepack/daemons/__pycache__/__init__.cpython-311.pyc exists in debian/tmp but is not installed to anywhere

Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
 debian/rules | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/debian/rules b/debian/rules
index 7e7cd7735d78..3eda0c9c04ec 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,6 +5,8 @@ ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
 	MAKE_OPTS += -j$(NUMJOBS)
 endif
 
+export PYTHONDONTWRITEBYTECODE=1
+
 override_dh_auto_test:
 	pytest --junit-xml=junit.xml
 

-- 
2.45.0



More information about the elbe-devel mailing list