Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
python 2.7
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
antonellocaroli
Guru
Guru


Joined: 11 Aug 2016
Posts: 509

PostPosted: Sun Mar 22, 2020 9:14 am    Post subject: python 2.7 Reply with quote

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
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30888
Location: here

PostPosted: Sun Mar 22, 2020 9:19 am    Post subject: Reply with quote

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
View user's profile Send private message
antonellocaroli
Guru
Guru


Joined: 11 Aug 2016
Posts: 509

PostPosted: Sun Mar 22, 2020 9:23 am    Post subject: Reply with quote

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
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30888
Location: here

PostPosted: Sun Mar 22, 2020 9:33 am    Post subject: Reply with quote

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
View user's profile Send private message
sabayonino
Veteran
Veteran


Joined: 03 Jan 2012
Posts: 1012

PostPosted: Sun Mar 22, 2020 9:57 am    Post subject: Reply with quote

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
Code:
$ equery --help

_________________
LRS i586 on G.Drive
LRS x86-64 EFI on MEGA
Back to top
View user's profile Send private message
antonellocaroli
Guru
Guru


Joined: 11 Aug 2016
Posts: 509

PostPosted: Mon Mar 23, 2020 6:08 am    Post subject: Reply with quote

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
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30888
Location: here

PostPosted: Mon Mar 23, 2020 7:29 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum