Projet

Général

Profil

0002-remove-getlasso.sh-69991.patch

Benjamin Dauvergne, 07 octobre 2022 13:04

Télécharger (1,35 ko)

Voir les différences:

Subject: [PATCH 2/2] remove getlasso.sh (#69991)

 MANIFEST.in |  1 -
 getlasso.sh | 20 --------------------
 2 files changed, 21 deletions(-)
 delete mode 100755 getlasso.sh
MANIFEST.in
52 52
include doc/*.rst
53 53
include doc/pictures/*
54 54
include COPYING NEWS README AUTHORS.txt
55
include getlasso.sh
56 55
include getlasso3.sh
57 56
include src/authentic2/nonce/README.rst
58 57
include doc/conf.py doc/Makefile
getlasso.sh
1
#!/bin/sh
2

  
3
# Get venv site-packages path
4
DSTDIR=`python -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 python -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib())'`
10

  
11
# Clean up
12
rm -f $DSTDIR/lasso.*
13
rm -f $DSTDIR/_lasso.*
14

  
15
# Link
16
ln -sv $SRCDIR/lasso.py $DSTDIR
17
ln -sv $SRCDIR/_lasso.* $DSTDIR
18

  
19
exit 0
20

  
21
-