0002-misc-remove-sitepackages-True-from-tox.ini-70163.patch
getlasso3.sh | ||
---|---|---|
1 |
#!/bin/sh |
|
2 | ||
3 |
# Get venv site-packages path |
|
4 |
DSTDIR=`python3 -c 'import sysconfig; print(sysconfig.get_path("platlib"))'` |
|
5 | ||
6 |
# Clean up |
|
7 |
rm -f $DSTDIR/lasso.* |
|
8 |
rm -f $DSTDIR/_lasso.* |
|
9 | ||
10 |
# Link |
|
11 |
ln -sv /usr/lib/python3/dist-packages/lasso.py $DSTDIR/ |
|
12 |
for SOFILE in /usr/lib/python3/dist-packages/_lasso.cpython-*.so |
|
13 |
do |
|
14 |
ln -sv $SOFILE $DSTDIR/ |
|
15 |
done |
|
16 | ||
17 |
exit 0 |
tox.ini | ||
---|---|---|
3 | 3 |
envlist = py3-django22-codestyle-coverage, pylint |
4 | 4 | |
5 | 5 |
[testenv] |
6 |
sitepackages = true |
|
7 | 6 |
setenv = |
8 | 7 |
NUMPROCESSES={env:NUMPROCESSES:1} |
9 | 8 |
SETUPTOOLS_USE_DISTUTILS=stdlib |
... | ... | |
36 | 35 |
pyzbar |
37 | 36 |
# others... |
38 | 37 |
commands = |
38 |
./getlasso3.sh |
|
39 | 39 |
py.test -v {env:COVERAGE:} --numprocesses={env:NUMPROCESSES:1} --dist loadfile --junitxml=junit-{envname}.xml {posargs:tests/} |
40 | 40 |
codestyle: pre-commit run --all-files --show-diff-on-failure |
41 | 41 | |
... | ... | |
70 | 70 |
pre-commit |
71 | 71 |
pyzbar |
72 | 72 |
commands = |
73 |
./getlasso3.sh |
|
73 | 74 |
./pylint.sh wcs/ tests/ |
74 |
- |