Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 573140 - dev-lang/python-exec: prefers python2.7 when eselected python3 is unsupported
Summary: dev-lang/python-exec: prefers python2.7 when eselected python3 is unsupported
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-27 15:29 UTC by Maxim Koltsov (RETIRED)
Modified: 2016-02-28 15:19 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maxim Koltsov (RETIRED) gentoo-dev 2016-01-27 15:29:48 UTC
Right now, when running python-exec wrapped script that does not have back-end matching currently eselected python version, it will choose another version by some internal logic.
For example, I have eselected python3.5, then I try to run a script that supports only 2.7, 3.3 and 3.4. python-exec starts it using 2.7, while I'd like to start it with 3.4.
I think it would be great if python-exec had some way of controlling python version preference.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-01-27 15:33:54 UTC
You're reporting the wrong bug! As I already told you, it's 'eselect python show --python2' causing this ;-P.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-01-27 17:49:48 UTC
Now, for some background.

It was done like this to cover the following scenario: a user has python2.7 eselected but runs py3-only app. In this case, the default order would prefer newest py3 version while an older one could be selected (with --python3).

So it also does the opposite: if user has python3 eselected, and matching py3 version is not supported, it falls back to eselect python2. Since that's eselected at least.

The question is: do we want to change that logic, and how? We could implement a custom preference list. But should we integrate that with eselect-python? Should we make that override py2/py3 selections?
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-02-06 22:09:33 UTC
The current live ebuilds fix that. Please give them some more testing before I do a release.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-02-06 22:09:45 UTC
(python-exec + eselect-python)
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-02-20 20:55:40 UTC
And now python-exec-2.4 is out (p.masked), with new totally awesome /etc/python-exec/<script-name>.conf config overrides!
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-02-28 15:19:21 UTC
Fixed in ~arch.