Skip to content

Commit

Permalink
Prevent python from generating binary files
Browse files Browse the repository at this point in the history
Do not generate .pyc and __pycache__ files in the tests: they are not
needed and break distcheck
  • Loading branch information
pbor committed Jan 5, 2013
1 parent 7a8f01e commit 519d9eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tests/Makefile.plugin
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,5 @@ clean-local:
for plugin in $(noinst_PLUGIN) ; do \
if test -e $(builddir)/$$plugin ; then \
rm -f $(builddir)/$$plugin ; \
# hack to cleanup .pyc files \
if test -e $(builddir)/$${plugin}c ; then \
rm -f $(builddir)/$${plugin}c ; \
fi ; \
fi ; \
done
3 changes: 3 additions & 0 deletions tests/testing-util/testing-util.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ testing_util_init (void)

g_setenv ("PEAS_PLUGIN_LOADERS_DIR", BUILDDIR "/loaders", TRUE);

/* Prevent python from generating compiled files, they break distcheck */
g_setenv ("PYTHONDONTWRITEBYTECODE", "yes", TRUE);

g_irepository_require (g_irepository_get_default (), "Peas", "1.0", 0, &error);
g_assert_no_error (error);

Expand Down

0 comments on commit 519d9eb

Please sign in to comment.