Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
python version question
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
honeymak
Guru
Guru


Joined: 30 Dec 2002
Posts: 594

PostPosted: Mon Dec 16, 2024 2:13 am    Post subject: python version question Reply with quote

in my gentoo
there are three versions of python
py 3.11, py 3.12, py 3.13

last time i made my whole system to py 3.12 (steps according to eselect news)
so the future is 3.13, right? but when?

and can i remove py 3.11? or why emerge --depclean does not clean it out?

:roll: :wink:
_________________
hackers - make sth real
academics - read sth said to be real
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9848
Location: almost Mile High in the USA

PostPosted: Mon Dec 16, 2024 3:20 am    Post subject: Reply with quote

There are probably some packages that are still using python3.11 and are only that version due to PYTHON_SINGLE_TARGET or PYTHON_TARGETS. This could be due to that package not being checked or failed check on new python versions.

If there is nothing depending on python3.11 portage should be able to depclean it. I still have a machine with python3.9 through python3.13 ... ugh...
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
honeymak
Guru
Guru


Joined: 30 Dec 2002
Posts: 594

PostPosted: Mon Dec 16, 2024 3:30 am    Post subject: Reply with quote

oooooops...found that many X stuff depends on py 3.11


any driving force moving pkg to py 3.12? gentoo? gentoo devs?

:oops:
_________________
hackers - make sth real
academics - read sth said to be real
Back to top
View user's profile Send private message
Phoenix591
Guru
Guru


Joined: 17 Sep 2007
Posts: 495

PostPosted: Mon Dec 16, 2024 4:38 am    Post subject: Reply with quote

honeymak wrote:
oooooops...found that many X stuff depends on py 3.11


any driving force moving pkg to py 3.12? gentoo? gentoo devs?

:oops:

double check (and remove) your package.use entries for stuff still telling things to use 3.11 . Gentoo devs are usually relatively quick to move things into new python versions; even now the QA tools like pkgcheck are reminding about upgrading to 3.13.

https://bugs.gentoo.org/showdependencytree.cgi?id=921826&hide_resolved=1 here's the few Gentoo packages still having 3.12 issues


Last edited by Phoenix591 on Mon Dec 16, 2024 4:42 am; edited 1 time in total
Back to top
View user's profile Send private message
honeymak
Guru
Guru


Joined: 30 Dec 2002
Posts: 594

PostPosted: Mon Dec 16, 2024 4:41 am    Post subject: Reply with quote

i moved to py 3.12 last time eselect news said item from py 3.11 to 3.12

and double checked no py 3.11 target in my use (just ruby 3.1)

hmmm......
:oops:
_________________
hackers - make sth real
academics - read sth said to be real
Back to top
View user's profile Send private message
Phoenix591
Guru
Guru


Joined: 17 Sep 2007
Posts: 495

PostPosted: Mon Dec 16, 2024 4:43 am    Post subject: Reply with quote

honeymak wrote:
i moved to py 3.12 last time eselect news said item from py 3.11 to 3.12

and double checked no py 3.11 target in my use (just ruby 3.1)

hmmm......
:oops:

emerge -avc dev-lang/python:3.11 will clearly say exactly what needs it ( equerry tends to be less accurate with optional dependencies)
Back to top
View user's profile Send private message
honeymak
Guru
Guru


Joined: 30 Dec 2002
Posts: 594

PostPosted: Mon Dec 16, 2024 4:46 am    Post subject: Reply with quote

Phoenix591 wrote:
honeymak wrote:
i moved to py 3.12 last time eselect news said item from py 3.11 to 3.12

and double checked no py 3.11 target in my use (just ruby 3.1)

hmmm......
:oops:

emerge -avc dev-lang/python:3.11 will clearly say exactly what needs it ( equerry tends to be less accurate with optional dependencies)


thx for the sweeet emerge cmd...

Code:

g64 /etc/portage/package.use # emerge -pavc dev-lang/python:3.11

Calculating dependencies... done!
  dev-lang/python-3.11.11_p1 pulled in by:
    games-puzzle/lightsoff-40.0.1 requires dev-lang/python:3.11

>>> No packages selected for removal by depclean
Packages installed:   1188
Packages in world:    40
Packages in system:   49
Required packages:    1188
Number to remove:     0



:oops:
OOOOOOOOOOOOooooooooooooooo.......
just put it here for your ref. ^_^
_________________
hackers - make sth real
academics - read sth said to be real
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9848
Location: almost Mile High in the USA

PostPosted: Mon Dec 16, 2024 5:02 am    Post subject: Reply with quote

If you can upgrade from games-puzzle/lightsoff-40.0.1 to lightsoff-46.0 (it's ~amd64 ~arm ~arm64 ~loong ~riscv ~x86) and there are no other packages that need python-3.11, then you could get rid of python-3.11.
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3461
Location: Canada

PostPosted: Mon Dec 16, 2024 11:07 pm    Post subject: Reply with quote

eccerr0r wrote:
I still have a machine with python3.9 through python3.13 ... ugh...



Yep, I also carry pyhon from 3.9 onwards on my office machine because my students write code in python, and updating it with every new version is not their main priority
Back to top
View user's profile Send private message
GDH-gentoo
Veteran
Veteran


Joined: 20 Jul 2019
Posts: 1778
Location: South America

PostPosted: Tue Dec 17, 2024 2:15 am    Post subject: Reply with quote

dmpogo wrote:
Yep, I also carry pyhon from 3.9 onwards on my office machine because my students write code in python, and updating it with every new version is not their main priority

If they continue doing Python after their studies, maybe that is a good skill to develop after all :P
_________________
NeddySeagoon wrote:
I'm not a witch, I'm a retired electronics engineer :)
Ionen wrote:
As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though :)
Back to top
View user's profile Send private message
honeymak
Guru
Guru


Joined: 30 Dec 2002
Posts: 594

PostPosted: Wed Dec 18, 2024 2:57 am    Post subject: Reply with quote

eccerr0r wrote:
If you can upgrade from games-puzzle/lightsoff-40.0.1 to lightsoff-46.0 (it's ~amd64 ~arm ~arm64 ~loong ~riscv ~x86) and there are no other packages that need python-3.11, then you could get rid of python-3.11.



this worked......just wondering when gentoo will mark this pkg stable...
:roll: :oops:
_________________
hackers - make sth real
academics - read sth said to be real
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3461
Location: Canada

PostPosted: Wed Dec 18, 2024 11:59 pm    Post subject: Reply with quote

GDH-gentoo wrote:
dmpogo wrote:
Yep, I also carry pyhon from 3.9 onwards on my office machine because my students write code in python, and updating it with every new version is not their main priority

If they continue doing Python after their studies, maybe that is a good skill to develop after all :P


It is not, they better do research and write their thesis in astrophysics, rather than following python versions
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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