2016-03-08 13:34:29 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Get venv site-packages path
|
|
|
|
DSTDIR=`python -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 python -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib())'`
|
|
|
|
|
|
|
|
# Clean up
|
|
|
|
rm -f $DSTDIR/lasso.*
|
|
|
|
rm -f $DSTDIR/_lasso.*
|
|
|
|
|
2016-09-06 15:54:54 +02:00
|
|
|
SRCDIR=/usr/lib/python2.7/dist-packages/
|
|
|
|
|
2016-03-08 13:34:29 +01:00
|
|
|
# Link
|
|
|
|
ln -sv $SRCDIR/lasso.py $DSTDIR
|
|
|
|
ln -sv $SRCDIR/_lasso.* $DSTDIR
|
|
|
|
|
|
|
|
exit 0
|
|
|
|
|