0001-misc-replace-use-of-distutils.sysconfig-by-sysconfig.patch
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 |
- |