diff options
author | Paolo Borelli <pborelli@gnome.org> | 2013-01-05 00:55:13 +0100 |
---|---|---|
committer | Paolo Borelli <pborelli@gnome.org> | 2013-01-05 01:26:04 +0100 |
commit | 519d9ebe0608c855ea84a1050036c93eda7dacbe (patch) | |
tree | fe1012a6bb960cec434bf4f15053475355304ce4 /tests/testing-util | |
parent | 7a8f01e7621c9a0a508139d0966db56a33ce295b (diff) | |
download | libpeas-519d9ebe0608c855ea84a1050036c93eda7dacbe.tar.gz |
Prevent python from generating binary files
Do not generate .pyc and __pycache__ files in the tests: they are not
needed and break distcheck
Diffstat (limited to 'tests/testing-util')
-rw-r--r-- | tests/testing-util/testing-util.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/testing-util/testing-util.c b/tests/testing-util/testing-util.c index 28840ce..8813dff 100644 --- a/tests/testing-util/testing-util.c +++ b/tests/testing-util/testing-util.c @@ -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); |