qubes-installer-qubes-os/anaconda/tests/testenv.sh
Marek Marczykowski-Górecki 701ced5ddb anaconda: update to 22.20.13-1
Apply diff anaconda-21.48.21-1..anaconda-22.20.13-1
2016-03-22 02:27:17 +13:00

36 lines
1.0 KiB
Bash

#!/bin/sh
if [ -z "$top_srcdir" ]; then
echo "*** top_srcdir must be set"
exit 1
fi
# If no top_builddir is set, use top_srcdir
: "${top_builddir:=$top_srcdir}"
if [ -z "$PYTHONPATH" ]; then
PYTHONPATH="${top_builddir}/pyanaconda/isys/.libs:${top_srcdir}/pyanaconda:${top_srcdir}:${top_srcdir}/tests/lib"
else
PYTHONPATH="${PYTHONPATH}:${top_builddir}/pyanaconda/isys/.libs:${top_srcdir}/pyanaconda:${top_srcdir}:${top_srcdir}/tests/lib"
fi
if [ -z "$LD_LIBRARY_PATH" ]; then
LD_LIBRARY_PATH="${top_builddir}/widgets/src/.libs"
else
LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${top_builddir}/widgets/src/.libs"
fi
ANACONDA_INSTALL_CLASSES="${top_srcdir}/pyanaconda/installclasses"
GI_TYPELIB_PATH="${top_builddir}/widgets/src"
export ANACONDA_INSTALL_CLASSES
export GI_TYPELIB_PATH
export LD_LIBRARY_PATH
export PYTHONPATH
export top_srcdir
export top_builddir
# This must be added to gi.overrides.__path__ by any test requiring the
# AnacondaWidgets gi-overrides
export ANACONDA_WIDGETS_OVERRIDES="${top_srcdir}/widgets/python"