[gnome-builder] Avoid creating __pycache__ instead of ignoring it



commit 2fcea84c320c5ba9827bb3d52948e2bb1823f3db
Author: Garrett Regier <garrettregier gmail com>
Date:   Wed Feb 17 15:20:38 2016 -0800

    Avoid creating __pycache__ instead of ignoring it

 Makefile.am                                      |    4 ++++
 plugins/contributing/Makefile.am                 |    2 --
 plugins/fpaste/Makefile.am                       |    2 --
 plugins/html-preview/Makefile.am                 |    2 --
 plugins/jedi/Makefile.am                         |    2 --
 plugins/library-template/Makefile.am             |    2 --
 plugins/python-gi-imports-completion/Makefile.am |    2 --
 plugins/todo/Makefile.am                         |    2 --
 tests/Makefile.am                                |    1 +
 9 files changed, 5 insertions(+), 14 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 7300a6e..8730dad 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -74,6 +74,7 @@ run:
        GB_IN_TREE_STYLE_SCHEMES=1 \
        GI_TYPELIB_PATH="libide:contrib/egg:contrib/tmpl:$(GI_TYPELIB_PATH)" \
        GOBJECT_DEBUG=instance-count \
+       PYTHONDONTWRITEBYTECODE=yes \
        PATH=$(top_builddir)/src:${PATH} \
        $(LIBTOOL) --mode=execute gdb -ex run --args src/gnome-builder -vvvv -s
 
@@ -84,6 +85,7 @@ strace:
        GB_IN_TREE_STYLE_SCHEMES=1 \
        GI_TYPELIB_PATH="libide:contrib/egg:contrib/tmpl:$(GI_TYPELIB_PATH)" \
        GOBJECT_DEBUG=instance-count \
+       PYTHONDONTWRITEBYTECODE=yes \
        PATH=$(top_builddir)/src:${PATH} \
        $(LIBTOOL) --mode=execute strace -T src/gnome-builder -vvvv -s
 
@@ -95,6 +97,7 @@ debug:
        GI_TYPELIB_PATH="libide:contrib/egg:contrib/tmpl:$(GI_TYPELIB_PATH)" \
        G_DEBUG=fatal-criticals \
        GOBJECT_DEBUG=instance-count \
+       PYTHONDONTWRITEBYTECODE=yes \
        PATH=$(top_builddir)/src:${PATH} \
        $(LIBTOOL) --mode=execute gdb -ex run --args src/gnome-builder -vvvv -s
 
@@ -106,6 +109,7 @@ valgrind:
        GI_TYPELIB_PATH="libide:contrib/egg:contrib/tmpl:$(GI_TYPELIB_PATH)" \
        G_DEBUG=fatal-criticals \
        G_SLICE=always-malloc \
+       PYTHONDONTWRITEBYTECODE=yes \
        PATH=$(top_builddir)/src:${PATH} \
        $(LIBTOOL) --mode=execute valgrind src/gnome-builder -vvvv -s
 
diff --git a/plugins/contributing/Makefile.am b/plugins/contributing/Makefile.am
index 50d9c67..6ec4634 100644
--- a/plugins/contributing/Makefile.am
+++ b/plugins/contributing/Makefile.am
@@ -12,6 +12,4 @@ dist_module_DATA = \
 
 endif
 
-GITIGNOREFILES = contributing_plugin/__pycache__
-
 -include $(top_srcdir)/git.mk
diff --git a/plugins/fpaste/Makefile.am b/plugins/fpaste/Makefile.am
index b9dd964..c14781b 100644
--- a/plugins/fpaste/Makefile.am
+++ b/plugins/fpaste/Makefile.am
@@ -13,7 +13,5 @@ dist_resourcegtk_DATA = fpaste_plugin/gtk/menus.ui
 
 endif
 
-GITIGNOREFILES = fpaste_plugin/__pycache__
-
 -include $(top_srcdir)/git.mk
 
diff --git a/plugins/html-preview/Makefile.am b/plugins/html-preview/Makefile.am
index cecfeb0..caf135e 100644
--- a/plugins/html-preview/Makefile.am
+++ b/plugins/html-preview/Makefile.am
@@ -19,6 +19,4 @@ dist_resourcegtk_DATA = html_preview_plugin/gtk/menus.ui
 
 endif
 
-GITIGNOREFILES = html_preview_plugin/__pycache__
-
 -include $(top_srcdir)/git.mk
diff --git a/plugins/jedi/Makefile.am b/plugins/jedi/Makefile.am
index af84a84..948c06c 100644
--- a/plugins/jedi/Makefile.am
+++ b/plugins/jedi/Makefile.am
@@ -9,6 +9,4 @@ dist_plugin_DATA = \
 
 endif
 
-GITIGNOREFILES = __pycache__
-
 -include $(top_srcdir)/git.mk
diff --git a/plugins/library-template/Makefile.am b/plugins/library-template/Makefile.am
index 6104ede..74251b0 100644
--- a/plugins/library-template/Makefile.am
+++ b/plugins/library-template/Makefile.am
@@ -45,6 +45,4 @@ EXTRA_DIST = $(nobase_resource_DATA)
 
 endif
 
-GITIGNOREFILES = library_template/__pycache__
-
 -include $(top_srcdir)/git.mk
diff --git a/plugins/python-gi-imports-completion/Makefile.am 
b/plugins/python-gi-imports-completion/Makefile.am
index 9e61fc5..127edf6 100644
--- a/plugins/python-gi-imports-completion/Makefile.am
+++ b/plugins/python-gi-imports-completion/Makefile.am
@@ -7,8 +7,6 @@ dist_plugin_DATA = \
        python-gi-imports-completion.plugin \
        python_gi_imports_completion.py
 
-GITIGNOREFILES = __pycache__
-
 endif
 
 -include $(top_srcdir)/git.mk
diff --git a/plugins/todo/Makefile.am b/plugins/todo/Makefile.am
index 192ee9b..28b5708 100644
--- a/plugins/todo/Makefile.am
+++ b/plugins/todo/Makefile.am
@@ -10,6 +10,4 @@ dist_module_DATA = todo_plugin/__init__.py
 
 endif
 
-GITIGNOREFILES = todo_plugin/__pycache__
-
 -include $(top_srcdir)/git.mk
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 123bcd9..0ecc888 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -65,6 +65,7 @@ TESTS_ENVIRONMENT= \
        G_TEST_BUILDDIR="$(abs_builddir)" \
        G_DEBUG=gc-friendly \
        GSETTINGS_BACKEND=memory \
+       PYTHONDONTWRITEBYTECODE=yes \
        MALLOC_CHECK_=2 \
        MALLOC_PERTURB_=$$(($${RANDOM:-256} % 256))
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]