Package: python3-minimal
Severity: normal

Hi.
I was trying to avoid py3compile hook on some files of a package, mainly
since they provide no usability on a device that storage is quite poor.
Following py3compile manpage and jinja2 examples, It seems that the
exception is not working as expected:

root <at> aether[~]$ echo
're|-3.7|/usr/lib/python3/dist-packages/scipy|\w+/tests/.*.py' >
/usr/share/python3/bcep/python3-scipy.bcep

root <at> aether[~]$ ls -la
/usr/lib/python3/dist-packages/scipy/stats/tests/test_mstats_basic.py
/usr/lib/python3/dist-packages/scipy/stats/tests/test_tukeylambda_stats.py
ls: cannot access
'/usr/lib/python3/dist-packages/scipy/stats/tests/test_mstats_basic.py':
No such file or directory
ls: cannot access
'/usr/lib/python3/dist-packages/scipy/stats/tests/test_tukeylambda_stats.py':
No such file or directory

root <at> aether[~]$ PYCOMPILE_DEBUG=1 py3compile -p python3-scipy -v D:
py3compile:226: argv: ['/usr/bin/py3compile', '-p', 'python3-scipy', '-v']
D: py3compile:227: options: {'verbose': True, 'force': False,
'optimize': False, 'package': 'python3-scipy', 'vrange': None,
'regexpr': None}
D: py3compile:228: args: []
[Errno 2] No such file or directory:
'/usr/lib/python3/dist-packages/scipy/stats/tests/test_mstats_basic.py'
[Errno 2] No such file or directory:
'/usr/lib/python3/dist-packages/scipy/stats/tests/test_tukeylambda_stats.py'
[Errno 2] No such file or directory:
'/usr/lib/python3/dist-packages/scipy/stats/tests/test_mstats_basic.py'
[Errno 2] No such file or directory:
'/usr/lib/python3/dist-packages/scipy/stats/tests/test_tukeylambda_stats.py'


Is this expected behaviour, to try to open files for compiling even
though they are excluded?

What am I missing?


Thanks in advance,

Dererk

-- 
BOFH excuse #154:

You can tune a file system, but you can't tune a fish (from most tunefs man 
pages)

Reply via email to