misc: replace use of distutils.sysconfig by sysconfig in getlasso3.sh

This commit is contained in:
Benjamin Dauvergne 2022-10-07 12:45:52 +02:00
parent 817314b8ee
commit e1e50c2797
1 changed files with 1 additions and 6 deletions

View File

@ -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.*