From 461a598ed594ccb94a6a3baaeaf48fbf6d869929 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Tue, 23 Jan 2024 20:21:52 +0100 Subject: [PATCH] Build: don't write __pycache__ files into lib folder for make commands These scripts are not performance critical, and the cache files could potentially interfere with library updates in the future. --- GNUmakefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/GNUmakefile b/GNUmakefile index 97fbf1e05f5..9492275a32d 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -236,6 +236,10 @@ ifndef PYTHON ifeq (, $(shell command -v $(PYTHON))) PYTHON:=python endif + else + # Don't generate __pycache__ files in lib folder, they + # can interfere with updates. + PYTHON:=$(PYTHON) -B endif endif