misc: replace use of distutils.sysconfig by sysconfig in getlasso3.sh
This commit is contained in:
parent
817314b8ee
commit
e1e50c2797
|
@ -1,12 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Get venv site-packages path
|
# Get venv site-packages path
|
||||||
DSTDIR=`python3 -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib())'`
|
DSTDIR=`python3 -c 'import sysconfig; print(sysconfig.get_path("platlib"))'`
|
||||||
|
|
||||||
# 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())'`
|
|
||||||
|
|
||||||
# Clean up
|
# Clean up
|
||||||
rm -f $DSTDIR/lasso.*
|
rm -f $DSTDIR/lasso.*
|
||||||
|
|
Loading…
Reference in New Issue