On 12/10/2017 09:30 PM, Bruno Friedmann wrote:
If i remember I've been hit by this perhaps using %python3_only %python2_only it could work ? Isn't that the shorthand for the same feature but in %files? I get these errors then: [ 9s] Unknown option s in python2_only() [ 9s] Unknown option s in python3_only()
I've been almost pretty sure this kind of writing would have work %check # A full language is needed to make test successful # C.UTF-8 used normally on obs is not enough %{python_expand #Try to build lang export LANG=en_US.UTF-8 $python setup.py test -s test$(echo "%{py_ver}" | cut -d "." -f1) } Using en_US.UTF-8 does not work too. I tried that already several times, but in a `osc chroot` session it does.
Moving `%if %{with tests}` inside the %check as pointed out off-list, does not help too. Sebastian -- python programming - mail server - photo - video - https://sebix.at cryptographic key at https://sebix.at/DC9B463B.asc and on public keyservers