View previous topic :: View next topic |
Author |
Message |
antonellocaroli Guru
Joined: 11 Aug 2016 Posts: 509
|
Posted: Sun Mar 22, 2020 9:14 am Post subject: python 2.7 |
|
|
Se non ho capito male, il supporto a python 2.7 non ci sará piú in futuro...
come faccio a sapere quali pacchetti attualmente stanno usando python:2.7 nel mio sistema? |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30888 Location: here
|
Posted: Sun Mar 22, 2020 9:19 am Post subject: |
|
|
In futuro non ci sara' piu' il supporto ma non lo elimineranno prima che tutti i pacchetti non abbiamo il supporto a python3.
Comunque puoi vederlo con eix
Code: | $ eix --installed-with-use python_single_target_python2_7
$ eix --installed-with-use python_targets_python2_7 |
_________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
antonellocaroli Guru
Joined: 11 Aug 2016 Posts: 509
|
Posted: Sun Mar 22, 2020 9:23 am Post subject: |
|
|
fedeliallalinea wrote: | In futuro non ci sara' piu' il supporto ma non lo elimineranno prima che tutti i pacchetti non abbiamo il supporto a python3.
Comunque puoi vederlo con eix
Code: | $ eix --installed-with-use python_single_target_python2_7
$ eix --installed-with-use python_targets_python2_7 |
|
Ciao fedeliallalinea, grazie.
Ma se non avessi eix? c'é un modo alternativo? |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30888 Location: here
|
Posted: Sun Mar 22, 2020 9:33 am Post subject: |
|
|
Certo tutte le informazioni sono presenti in /var/db/pkg/ quindi con un semplice grep puoi trovare i pacchetti che usano python2.7
Code: | $ grep -r -e python_targets_python2_7 -e python_single_target_python2_7 /var/db/pkg/ --include=USE |
_________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
sabayonino Veteran
Joined: 03 Jan 2012 Posts: 1012
|
Posted: Sun Mar 22, 2020 9:57 am Post subject: |
|
|
equery fornito dal pacchetto app-portage/gentoolkit
Code: | $ equery h python_single_target_python2_7 python_targets_python2_7 |
o peer una comoda consultazione
Code: | equery h python_single_target_python2_7 python_targets_python2_7 | less |
Vedi
_________________ LRS i586 on G.Drive
LRS x86-64 EFI on MEGA |
|
Back to top |
|
|
antonellocaroli Guru
Joined: 11 Aug 2016 Posts: 509
|
Posted: Mon Mar 23, 2020 6:08 am Post subject: |
|
|
Grazie.
Altra domanda...
emerge --info
prende informazione su python_single_target e python_target dal profilo?
quindi inserire nel make.conf
es.
Code: | PYTHON_TARGETS="python2_7 python3_7"
PYTHON_SINGLE_TARGET="python3_7" |
é una forzatura??
il dubbio mi viene dal fatto che se ho quelle righe in make.conf
emerge --info mi restituisce python2_7 e 3_7
se le tolgo python2_7 e 3_6
siccome non ho installato sul sistema la 3.6 mi viene da pensare che é impostato da profilo.... |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30888 Location: here
|
Posted: Mon Mar 23, 2020 7:29 am Post subject: |
|
|
Si le variabili PYTHON_TARGETS e PYTHON_SINGLE_TARGET sono gestite dal profilo e non dovrebbero essere sovrascritte nel make.conf se non necessario per qualche motivo.
Il problema che quando queste vegono cambiate dal profilo, se si sono impostate le proprie nel make.conf, bisogna ricordarsi di cambiarle anche li se no potresti avere qualche problema con gli update. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
|