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.
This commit is contained in:
Brecht Van Lommel 2024-01-23 20:21:52 +01:00
parent 440b1d9179
commit 461a598ed5

@ -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