jan matejek-4 wrote
On 21.3.2017 19:51, Luigi Baldoni wrote:
Am I missing something or do I really need a more complex script?
Well, you have different steps for different interpreters. You'll need to do it the old way: python2 test/alltests.py python3 test3/alltests.py
you could probably rename "test" to "test2" and then do something like %{python_expand NUMBER=`echo %{$python_version} | cut -c 1` $python test$NUMBER/alltests.py } But that seems pointless... if they have a separate test suite for python 2 and 3, i don't have high hopes for their suite running on pypy or something else anyway.
I ended up using a horrid but functioning python one-liner. For some reason I couldn't make it work with bash. Still, I have another question: I was left with the impression that unified packages had to produce a module for both pythons but binaries only for python3. Is that correct or are there exceptions to that rule? Regards -- View this message in context: http://opensuse.14.x6.nabble.com/python-singlespec-how-to-convert-your-packa... Sent from the opensuse-packaging mailing list archive at Nabble.com. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org