0003-tox.ini-link-lasso-inside-tox-venv-38697.patch
getlasso3.sh | ||
---|---|---|
1 |
#!/bin/sh |
|
2 | ||
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())'` |
|
10 | ||
11 |
# Clean up |
|
12 |
rm -f $DSTDIR/lasso.* |
|
13 |
rm -f $DSTDIR/_lasso.* |
|
14 | ||
15 |
# Link |
|
16 |
ln -sv /usr/lib/python3/dist-packages/lasso.py $DSTDIR/ |
|
17 |
for SOFILE in /usr/lib/python3/dist-packages/_lasso.cpython-*.so |
|
18 |
do |
|
19 |
ln -sv $SOFILE $DSTDIR/ |
|
20 |
done |
|
21 | ||
22 |
exit 0 |
tox.ini | ||
---|---|---|
42 | 42 |
py2: Quixote<3 |
43 | 43 |
py3: Quixote>=3.0 |
44 | 44 |
commands = |
45 |
py2: ./getlasso.sh |
|
46 |
py3: ./getlasso3.sh |
|
45 | 47 |
py.test -v {env:COVERAGE:} --junitxml=junit-{envname}.xml {posargs:tests/} |
46 | 48 |
pylint: ./pylint.sh wcs/ |
47 |
- |