News for hackers. Stuff that matters.
Re:Python 3.12 by IshKebab on Monday October 02, 2023 @12:50PM (#37740835)
Finally! I've been waiting for this for years.

Now I just have to wait 5 more years until 3.12 is sufficiently old that work lets me use it.

Bets on user-upgradable Python on Linux by 2030?

Re:Python 3.12 by ptx on Monday October 02, 2023 @01:42PM (#37741727)
Software is always user-upgradable on Linux. Just install it somewhere in your home directory. GNU Stow [0] can be helpful as very lightweight way to manage the packages.

(Of course, then you take on the responsibility of keeping up with patch releases yourself, which is why we use distros. But if it's just a small number of packages on top of a distro-managed base system, it's perhaps not so bad.)

[0] https://www.gnu.org/software/stow/

Re:Python 3.12 by IshKebab on Monday October 02, 2023 @02:24PM (#37742329)
Sure and how do you install Python 3.12 on RHEL 8 without compiling it from source?
Re:Python 3.12 by JodieBenitez on Monday October 02, 2023 @03:01PM (#37742830)
I don't know, but what is the problem with compiling from source ? Some softwares are hard to compile but I found Python really easy to compile.
Re:Python 3.12 by IshKebab on Monday October 02, 2023 @05:22PM (#37744588)
I agree that compiling Python from source is surprisingly straight forward, but is that a serious question?

Have you ever worked in a place that uses Python? When someone says to you "hey it's not working" are you really going to say with a straight face "oh yes, you just need to compile Python from source". Come on, this is one of those obviously stupid situations that for some reason people feel the need to defend. It's not defensible.

You don't need to compile Node or Rust or Go or Deno from source to install the latest version.

Re:Python 3.12 by Cynox on Monday October 02, 2023 @03:06PM (#37742888)
Just run the miniforge install script if you want a very friction-free install. I'm not a big conda fan, but the "install in my home directory" use case is very well covered by miniforge. https://github.com/conda-forge/miniforge/
Re:Python 3.12 by IshKebab on Monday October 02, 2023 @05:23PM (#37744602)
That looks like it will install Conda though?
Re:Python 3.12 by heavyset_go on Monday October 02, 2023 @05:22PM (#37744584)
Use pyenv and let it manage Python versions for you.
Re:Python 3.12 by IshKebab on Monday October 02, 2023 @05:25PM (#37744632)
pyenv builds Python from source.
Re:Python 3.12 by heavyset_go on Monday October 02, 2023 @05:49PM (#37744928)
Yes, but it's automated behind a single command and fast.
Re:Python 3.12 by nurettin on Wednesday October 04, 2023 @12:11AM (#37760774)
Are you really going to support rhel8 as a platform for your project which uses specific python 3.12 rc3 features? Well there's always podman, I guess.
Re:Python 3.12 by dist-epoch on Monday October 02, 2023 @02:36PM (#37742504)
On Ubuntu at least you can install versions of Python separate from the system one.

https://www.cherryservers.com/blog/install-python-on-ubuntu

Re:Python 3.12 by avtar on Monday October 02, 2023 @03:08PM (#37742915)
Using containers is a reasonable workaround:

https://realpython.com/python-versions-docker/#running-pytho...

Re:Python 3.12 by hotnfresh on Monday October 02, 2023 @11:38PM (#37747690)
> Bets on user-upgradable Python on Linux by 2030?

Use asdf. You don’t want to manage your project’s dependencies at the system level any more than you have to.