Projet

Général

Profil

0001-misc-replace-use-of-distutils.sysconfig-by-sysconfig.patch

Benjamin Dauvergne, 06 octobre 2022 23:33

Télécharger (958 octets)

Voir les différences:

Subject: [PATCH] misc: replace use of distutils.sysconfig by sysconfig
 (#69975)

 getlasso3.sh | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
getlasso3.sh
1 1
#!/bin/sh
2 2

  
3 3
# Get venv site-packages path
4
DSTDIR=`python3 -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib())'`
5

  
6
# Get not venv site-packages path
7
# Remove first path (assuming that is the venv path)
8
NONPATH=`echo $PATH | sed 's/^[^:]*://'`
9
SRCDIR=`PATH=$NONPATH python3 -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib())'`
4
DSTDIR=`python3 -c 'import sysconfig; print(sysconfig.get_path("platlib"))'`
10 5

  
11 6
# Clean up
12 7
rm -f $DSTDIR/lasso.*
13
-