diff --git a/pkg/linux/build-functions.sh b/pkg/linux/build-functions.sh index 7b19a560a..0211339ef 100644 --- a/pkg/linux/build-functions.sh +++ b/pkg/linux/build-functions.sh @@ -86,8 +86,7 @@ _create_python_virtualenv() { # Figure out some paths for use when completing the venv # Use "python3" here as we want the venv path - PYMODULES_PATH=$(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())") - DIR_PYMODULES_PATH=$(dirname "${PYMODULES_PATH}") + DIR_PYMODULES_PATH=$(python3 -c "from sysconfig import get_path; print(get_path('stdlib'))") # Use {SYSTEM_PYTHON_PATH} here as we want the system path if [ "$1" == "debian" ]; then