1 |
On Sat, 03 Feb 2018 07:25:08 +0100 |
2 |
tuxic@××××××.de wrote: |
3 |
>Hi, |
4 |
> |
5 |
>I want to compile/install FreeCAD. I checked my python/cpython |
6 |
>installation, because FreeCAD wants python 2.7 |
7 |
> |
8 |
>I got this output |
9 |
> |
10 |
>/root>eselect python list --cpython |
11 |
>Available Python interpreters, in order of preference: |
12 |
> [1] python3.5 |
13 |
> [2] python3.4 (uninstalled) |
14 |
> [3] python2.7 |
15 |
> [4] python3.4 (uninstalled) |
16 |
> [5] python3.6 |
17 |
> [6] python3.4 (uninstalled) |
18 |
> |
19 |
|
20 |
Not “corrupted somehow”, it’s a work-in-progress (WIP), see [1]. |
21 |
|
22 |
>Why it is listing python versions, when '--cpython' is set? |
23 |
|
24 |
Because the filter ‘--py’ for option ‘--cpython’ (action list) probably |
25 |
doesn’t match the condition: |
26 |
|
27 |
[[ ${1} == --py* && ${i} != python${1:4}* ]] && continue |
28 |
|
29 |
in file [a] to skip not requested output. |
30 |
|
31 |
>Why do I have doubled entries? |
32 |
|
33 |
Because your version of app-eselect/eselect-python probably doesn’t |
34 |
provide the function do_cleanup() in [a] to sanitise [b]. |
35 |
|
36 |
|
37 |
References: |
38 |
- [a] /usr/share/eselect/modules/python.eselect |
39 |
- [b] /etc/python-exec/python-exec.conf |
40 |
- [1] <https://bugs.gentoo.org/show_bug.cgi?id=635678> |
41 |
|
42 |
|
43 |
-- |
44 |
Regards, |
45 |
floyd |