From 92549af3d4da380c5e95b19138bd5b13640eb213 Mon Sep 17 00:00:00 2001 From: Khushboo Vashi Date: Mon, 18 Dec 2023 12:21:20 +0530 Subject: [PATCH] Replaced distutils.sysconfig.get_python_lib with sysconfig.get_path. --- pkg/linux/build-functions.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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