Skip to content

Commit

Permalink
Look for missing python library in virtual environments.
Browse files Browse the repository at this point in the history
Former-commit-id: e19dbfc818d18ad171914b42ec87ddbb41dc53c9
  • Loading branch information
wspear committed Oct 30, 2024
1 parent 274fc2f commit 12a93fd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -11277,7 +11277,14 @@ if [ $python = yes ] ; then
pythonlibrary=`${pythonintv} ./utils/python_get_paths.py libname | sed -e 's/ .*//g'`
fi
if [ "x$pythonlibrary" != "x" ] ; then
#If the python library directory exists but the library is not found we may be in a
#virtual environment. Query the library and include paths directly.
if [ ! -f $pythonlib/$pythonlibrary ] ; then
pythonlib=`${pythonintv} ./utils/python_get_paths.py libdir | sed -e 's/ .*//g'`
pythoninc=`${pythonintv} ./utils/python_get_paths.py inc | sed -e 's/ .*//g'`
fi

if [ ! -f $pythonlib/$pythonlibrary ] ; then
echo "ERROR: Python library $pythonlib/$pythonlibrary not found."
exit 1
fi
Expand Down

0 comments on commit 12a93fd

Please sign in to comment.