qutebrowser: add PYTHONPATH when building

This commit is contained in:
Jerome Duval
2023-12-01 13:24:54 +01:00
parent d3e6a1a412
commit 91c30fd042

View File

@@ -48,6 +48,9 @@ BUILD_PREREQUIRES="
BUILD()
{
python=$portPackageLinksDir/cmd~python$PYTHON_VERSION/bin/python$PYTHON_VERSION
pythonVersion=$($python --version 2>&1 | sed 's/Python //' | head -c4)
installLocation=$prefix/lib/python$pythonVersion/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
make -f misc/Makefile PYTHON=python$PYTHON_VERSION all
}