commit:     b70420d4010d3f7bae763faaea3fc4020fd6b12d
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Feb  6 21:30:08 2016 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Feb  6 21:30:08 2016 +0000
URL:        
https://gitweb.gentoo.org/proj/eselect-python.git/commit/?id=b70420d4

Support PyPy & Jython

 python.eselect.in | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/python.eselect.in b/python.eselect.in
index 37a824c..e542f5e 100644
--- a/python.eselect.in
+++ b/python.eselect.in
@@ -14,7 +14,14 @@ MAN_PATH="${EROOT%/}/usr/share/man/man1"
 # Get list of all installed Python interpreters, in lexical order.
 # $1 can be --pyN to filter results to pythonN.?.
 get_installed_pythons() {
-       local exes=( "${INTERPRETER_DIR}"/python?.?@EXEEXT@ )
+       local exes=(
+               # note: order *matters*
+               # TODO: get them outta python-exec
+               "${INTERPRETER_DIR}"/jython?.?@EXEEXT@
+               "${INTERPRETER_DIR}"/pypy{,3}@EXEEXT@
+               "${INTERPRETER_DIR}"/python?.?@EXEEXT@
+       )
+
        local i
        for (( i = ${#exes[@]}-1; i >= 0; --i )); do
                local exe=${exes[i]}

Reply via email to