Skip to content
Snippets Groups Projects
Commit a6105fb9 authored by Marcel Loose's avatar Marcel Loose :sunglasses:
Browse files

Bug 1310: Only handle -pythonpkg option in runtest.sh when using Autotools

parent 7ec82bdd
No related branches found
No related tags found
No related merge requests found
......@@ -274,4 +274,5 @@ TESTS_ENVIRONMENT = LOFARROOT="$(LOFARROOT)" \
srcdir="$(srcdir)" \
CHECKTOOLPROGS="$(CHECKTOOLPROGS)" \
MPIBIN="$(MPIBIN)" \
AIPSPP="$(AIPSPP)"
AIPSPP="$(AIPSPP)" \
GNU_AUTOTOOLS="yes"
......@@ -167,9 +167,10 @@ else
fi
# For python files create the lofar/package directory, so the tests can
# be run as if the python files were installed.
# be run as if the python files were installed. This is only needed when
# using the GNU Autotools (note: GNU_AUTOTOOLS is set in Makefile.common).
# Note that python looks in . before PYTHONPATH.
if [ "$PYTHONPKG" != "" ]; then
if [ "$PYTHONPKG" != "" -a "$GNU_AUTOTOOLS" != "" ]; then
PYTHONDIR=${1}_tmp_pythonpkg_dir # will be removed automatically
mkdir -p $PYTHONDIR/lofar/$PYTHONPKG
touch $PYTHONDIR/lofar/__init__.py
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment