Fix distcheck some more.

In testsuite/common.py look for gst/__init__.py in builddir now.
Clean gst/__init__.pyc after make check.
This commit is contained in:
Alessandro Decina 2010-11-22 14:18:05 +01:00
parent cac4f31f1a
commit a1584d04c5
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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