[Spice-devel] [spice-common 3/3] build: Add __pycache__/*.pyc to DISTCLEANFILES

Christophe Fergeau cfergeau at redhat.com
Fri Jun 8 10:01:17 UTC 2018


Python 3 puts its .pyc files in a __pycache__ subdirectory, This commit
adds these to DISTCLEANFILES. My main motivation for doing this is so
that git.mk can then properly add them to .gitignore.
---
 python_modules/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/python_modules/Makefile.am b/python_modules/Makefile.am
index 07e1917..74d9a00 100644
--- a/python_modules/Makefile.am
+++ b/python_modules/Makefile.am
@@ -11,6 +11,6 @@ PYTHON_MODULES =				\
 
 EXTRA_DIST = meson.build $(PYTHON_MODULES)
 
-DISTCLEANFILES = *.pyc
+DISTCLEANFILES = *.pyc __pycache__/*.pyc
 
 -include $(top_srcdir)/git.mk
-- 
2.17.1



More information about the Spice-devel mailing list