tox: load lasso (#35425)
This commit is contained in:
parent
f6e46c07e1
commit
f06322cf7a
|
@ -0,0 +1,22 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Get venv site-packages path
|
||||||
|
DSTDIR=`python3 -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 python3 -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 /usr/lib/python3/dist-packages/lasso.py $DSTDIR/
|
||||||
|
for SOFILE in /usr/lib/python3/dist-packages/_lasso.cpython-*.so
|
||||||
|
do
|
||||||
|
ln -sv $SOFILE $DSTDIR/
|
||||||
|
done
|
||||||
|
|
||||||
|
exit 0
|
1
tox.ini
1
tox.ini
|
@ -31,6 +31,7 @@ deps =
|
||||||
git+http://git.entrouvert.org/debian/django-ckeditor.git
|
git+http://git.entrouvert.org/debian/django-ckeditor.git
|
||||||
commands =
|
commands =
|
||||||
py2: ./getlasso.sh
|
py2: ./getlasso.sh
|
||||||
|
py3: ./getlasso3.sh
|
||||||
py2: ./get_wcs.sh
|
py2: ./get_wcs.sh
|
||||||
python manage.py compilemessages
|
python manage.py compilemessages
|
||||||
py.test {env:COVERAGE:} {posargs: --junitxml=test_{envname}_results.xml tests/}
|
py.test {env:COVERAGE:} {posargs: --junitxml=test_{envname}_results.xml tests/}
|
||||||
|
|
Loading…
Reference in New Issue