Re: [gentoo-user] "eselect (c)python --list" corrupted somehow?

2018-02-03 Thread Floyd Anderson

On Sat, 03 Feb 2018 07:25:08 +0100
tu...@posteo.de wrote:

Hi,

I want to compile/install FreeCAD. I checked my python/cpython
installation, because FreeCAD wants python 2.7

I got this output

/root>eselect python list --cpython
Available Python  interpreters, in order of preference:
 [1]   python3.5
 [2]   python3.4 (uninstalled)
 [3]   python2.7
 [4]   python3.4 (uninstalled)
 [5]   python3.6
 [6]   python3.4 (uninstalled)



Not “corrupted somehow”, it’s a work-in-progress (WIP), see [1].


Why it is listing python versions, when '--cpython' is set?


Because the filter ‘--py’ for option ‘--cpython’ (action list) probably 
doesn’t match the condition:


   [[ ${1} == --py* && ${i} != python${1:4}* ]] && continue

in file [a] to skip not requested output.


Why do I have doubled entries?


Because your version of app-eselect/eselect-python probably doesn’t 
provide the function do_cleanup() in [a] to sanitise [b].



References:
 - [a] /usr/share/eselect/modules/python.eselect
 - [b] /etc/python-exec/python-exec.conf
 - [1] 


--
Regards,
floyd




[gentoo-user] "eselect (c)python --list" corrupted somehow?

2018-02-02 Thread tuxic
Hi,

I want to compile/install FreeCAD. I checked my python/cpython
installation, because FreeCAD wants python 2.7

I got this output

/root>eselect python list --cpython 
Available Python  interpreters, in order of preference:
  [1]   python3.5
  [2]   python3.4 (uninstalled)
  [3]   python2.7
  [4]   python3.4 (uninstalled)
  [5]   python3.6
  [6]   python3.4 (uninstalled)

Why it is listing python versions, when '--cpython' is set?
Why do I have doubled entries?


Thank you very much in advance for any help!

Cheers!
Meino