summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2016-02-06 22:30:08 +0100
committerMichał Górny <mgorny@gentoo.org>2016-02-06 22:30:08 +0100
commitb70420d4010d3f7bae763faaea3fc4020fd6b12d (patch)
tree8525937f87bde29c7c1d4e8629d771dbf2cde54a
parentpost_update: Use only CPython for manpages, frameworks and python-docs (diff)
downloadeselect-python-b70420d4010d3f7bae763faaea3fc4020fd6b12d.tar.gz
eselect-python-b70420d4010d3f7bae763faaea3fc4020fd6b12d.tar.bz2
eselect-python-b70420d4010d3f7bae763faaea3fc4020fd6b12d.zip
Support PyPy & Jython
-rw-r--r--python.eselect.in9
1 files changed, 8 insertions, 1 deletions
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]}