Try setting LD_LIBRARY_PATH

Currently zpython test does not work: libzpython could not load libpython.
This commit is contained in:
Foo 2017-05-01 01:45:07 +03:00
parent 4c5b02d236
commit 65c6ed1cff
2 changed files with 5 additions and 1 deletions

View File

@ -17,6 +17,10 @@ if test "$TRAVIS" = true ; then
. virtualenvwrapper.sh
workon cpython-ucs2-$UCS2_PYTHON_VARIANT
set -e
else
LIBRARY_PATH="$(ldd "$(which python)" | grep libpython | sed 's/^.* => //;s/ .*$//')"
LIBRARY_DIR="$(dirname "${LIBRARY_PATH}")"
export LD_LIBRARY_PATH="$LIBRARY_DIR${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
fi
fi

View File

@ -229,7 +229,7 @@ fi
exes="bash zsh busybox tcsh mksh"
if test -z "$TRAVIS_JOB_NUMBER" ; then
if test "$TRAVIS" != "true" ; then
# For some reason fish does not work on travis
exes="$exes fish"
fi