From a1584d04c528d7dadd750a8762eb5ee266fccdca Mon Sep 17 00:00:00 2001 From: Alessandro Decina Date: Mon, 22 Nov 2010 14:18:05 +0100 Subject: [PATCH] Fix distcheck some more. In testsuite/common.py look for gst/__init__.py in builddir now. Clean gst/__init__.pyc after make check. --- gst/Makefile.am | 2 +- testsuite/common.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gst/Makefile.am b/gst/Makefile.am index a395997add..e094de9959 100644 --- a/gst/Makefile.am +++ b/gst/Makefile.am @@ -80,7 +80,7 @@ GST_OVERRIDES = \ gstbase.override GST_DEFS = gst.defs gst-types.defs gst-extrafuncs.defs libs.defs base.defs -CLEANFILES = gst.c +CLEANFILES = gst.c __init__.pyc EXTRA_DIST += $(GST_DEFS) $(GST_OVERRIDES) gstversion.override.in gst.c: $(GST_DEFS) $(GST_OVERRIDES) $(GEN_FILES) gstversion.override __init__.py diff --git a/testsuite/common.py b/testsuite/common.py index cc81745ca9..eca4877adc 100644 --- a/testsuite/common.py +++ b/testsuite/common.py @@ -61,8 +61,8 @@ topsrcdir = os.path.abspath(os.path.join('..')) if topsrcdir.endswith('_build'): topsrcdir = os.path.dirname(topsrcdir) -# gst's __init__.py is in topsrcdir/gst -path = os.path.abspath(os.path.join(topsrcdir, 'gst')) +# gst's __init__.py is in topbuilddir/gst +path = os.path.abspath(os.path.join(topbuilddir, 'gst')) import gst file = gst.__file__ assert file.startswith(path), 'bad gst path: %s' % file