From e1e50c2797ce60c1c3b3da2775aeb8933cc0752f Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Fri, 7 Oct 2022 12:45:52 +0200 Subject: [PATCH] misc: replace use of distutils.sysconfig by sysconfig in getlasso3.sh --- getlasso3.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/getlasso3.sh b/getlasso3.sh index 9266a72..4c6a537 100755 --- a/getlasso3.sh +++ b/getlasso3.sh @@ -1,12 +1,7 @@ #!/bin/sh # Get venv site-packages path -DSTDIR=`python3 -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib())'` - -# Get not venv site-packages path -# Remove first path (assuming that is the venv path) -NONPATH=`echo $PATH | sed 's/^[^:]*://'` -SRCDIR=`PATH=$NONPATH python3 -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib())'` +DSTDIR=`python3 -c 'import sysconfig; print(sysconfig.get_path("platlib"))'` # Clean up rm -f $DSTDIR/lasso.*