Replaced distutils.sysconfig.get_python_lib with sysconfig.get_path.
parent
9379df2543
commit
92549af3d4
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue