Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
PAKFIRE_LOG=debug \
topdir="$(shell pwd)"
+# Test the library we just built
+TESTS_ENVIRONMENT += \
+ LD_LIBRARY_PATH=$(top_srcdir)/.libs:$(LD_LIBRARY_PATH)
+
+# Test the Python modules we just built
+TESTS_ENVIRONMENT += \
+ PYTHONPATH=$(top_srcdir)/src:$(top_srcdir)/.libs:$(PYTHONPATH)
+
dist_check_SCRIPTS = \
tests/python/archive.py \
tests/python/ctx.py \
from .__version__ import PAKFIRE_VERSION as __version__
# Import everything from the C module
-from ._pakfire import *
+try:
+ from ._pakfire import *
+except ImportError:
+ from _pakfire import *