Hey, On 7/9/19 1:14 PM, Matěj Cepl wrote:
On 2019-07-09, 06:32 GMT, you wrote:
I thought the discussion is also about pypy (so the 1 Jan argument doesn't count imo).
Right, that one doesn’t apply, but the rest is the same: normal users can use whatever they have in %{_bindir} (and python3 is probably the basic Python for many years to come), and whoever needs the library can use it with python2/pypy/etc. And yes, ``pypy -m library`` trick should work as well.
That "trick" mean you need to patch all your scripts that rely on executables from /usr/bin . That will not work. Another problem with this trick is: $ python3 -m novaclient /usr/bin/python3: No module named novaclient.__main__; 'novaclient' is a package and cannot be directly executed So you first need to find out (I know how to, just an example) which module contains main.
Detailed control? I just want working packages which include the executables. And all other distros I looked at (Fedora, Debian, Ubuntu) just have the executables for all python versions.
If you have some more important reason than “I don’t want to have Python 3 on my system” we can certainly add alternatives for the particular packages, but I don’t think I would like to add foo-2 and foo-3 versions to all python packages in the repository.
I want to have python3. Actually But if I want to have pypy (or python2), I don't want to have the whole python3 stack just for the executables (which would then anyway call the python3 code, and not the pypy/python2 code). I can currently see 3 possible solutions: 1) keep the current status (use singlespec, no executables in pypy/python2 modules). I hope it's obvious that I don't prefer this solution :) 2) add executables to all flavors. So using %python3_only is no longer allowed. The packages would use the update-alternative mechanism to provide the executables for python3/python2/pypy 3) Remove singlespec and only care about python3 I would prefer 3) over 2) over 1) because I only care about python3 and singlespec makes the whole thing more complicated than needed. Cheers, Tom