summaryrefslogtreecommitdiffstats
path: root/getlasso.sh
diff options
context:
space:
mode:
authorGrigi <nagrigoriadis@gmail.com>2014-11-22 05:23:50 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2014-12-11 13:33:49 (GMT)
commite2213b9bdaec5e0a1dfadcfc0613ff129af1b59b (patch)
treebd7d7ad0c4c2a805329525a66c725a1623c19219 /getlasso.sh
parent242815a15ec82b157979b0a3f3dcabbcb6921066 (diff)
downloadauthentic-e2213b9bdaec5e0a1dfadcfc0613ff129af1b59b.zip
authentic-e2213b9bdaec5e0a1dfadcfc0613ff129af1b59b.tar.gz
authentic-e2213b9bdaec5e0a1dfadcfc0613ff129af1b59b.tar.bz2
Added tox as a test-runner.
It will build different virtualenvs for each target. getlasso.sh is somewhat hacky, but until lasso is installable through pip this is the workaround. License: MIT refs #5244
Diffstat (limited to 'getlasso.sh')
-rwxr-xr-xgetlasso.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/getlasso.sh b/getlasso.sh
new file mode 100755
index 0000000..680da39
--- /dev/null
+++ b/getlasso.sh
@@ -0,0 +1,20 @@
+#!/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.*
+
+# Link
+ln -sv $SRCDIR/lasso.py $DSTDIR
+ln -sv $SRCDIR/_lasso.* $DSTDIR
+
+exit 0
+