News for hackers. Stuff that matters.
Re:Red Hat Enterprise Linux 8 released by sparkling on Tuesday May 07, 2019 @09:39AM (#19849169)
It makes a lot of sense that OS-stuff points to a seperate Python interpreter, don't you think? I like this approach.
Re:Red Hat Enterprise Linux 8 released by SloopJon on Tuesday May 07, 2019 @01:29PM (#19851551)
Red Hat Developer blog post on the topic:

https://developers.redhat.com/blog/2019/05/07/what-no-python...

This is an instance of what they're calling application streams, as explained in another post:

https://developers.redhat.com/blog/2018/11/15/rhel8-introduc...

Re:Red Hat Enterprise Linux 8 released by lima on Tuesday May 07, 2019 @09:48AM (#19849254)
Exactly, and with App Streams you won't be stuck on an old Python version! This is an awesome feature.

You already have that on CentOS/RHEL 7 with Software Collections, and App Streams make it a first-class citizen.

Re:Red Hat Enterprise Linux 8 released by ckuhl on Tuesday May 07, 2019 @10:16AM (#19849567)
Oh it definitely does. I remember seriously messing up a Linux Mint installation a while back because I upgraded all of the 3rd party dependencies that were preinstalled (because hey, newer is better, right?).
Re:Red Hat Enterprise Linux 8 released by tannhaeuser on Tuesday May 07, 2019 @12:59PM (#19851268)
Yes and no. It absolutely makes sense to ensure that admin scripts used by RHEL run in a predictable, tested environment; even more so since Python has dropped backward portability. OTOH not even being able to rely on Python's presence is exactly the kind of thing that makes Python unsuitable as the shell replacement it is being promoted as.
Re:Red Hat Enterprise Linux 8 released by CameronNemo on Tuesday May 07, 2019 @02:31PM (#19852146)
Installing a python interpreter is one package. If you just want to write a quick script using the standard library, it is cheap as all hell.
Re:Red Hat Enterprise Linux 8 released by Skunkleton on Tuesday May 07, 2019 @01:32PM (#19851585)
Is python being promoted as a wholesale shell replacement? There certainly are plenty of overlapping usecases, but shell is a better fit for many of these tasks. Until something like ipython can replace the interactive shell, I don't see python replacing shell scripts entirely.
Re:Red Hat Enterprise Linux 8 released by Diederich on Tuesday May 07, 2019 @10:01AM (#19849376)
Aye; this should have been done a long time ago. I wanted to say 'since the beginning' (whenever that was), but maybe there were good reasons 20 years ago that I can't recall.

It probably made sense when disk space was a lot more constrained.

Re:Red Hat Enterprise Linux 8 released by toyg on Tuesday May 07, 2019 @10:17AM (#19849572)
It just wasn't the practice back in the day. Does redhat ship a "platform-perl"?
Re:Red Hat Enterprise Linux 8 released by vetinari on Tuesday May 07, 2019 @11:22AM (#19850325)
As far as I remember, there is no perl at all in minimal install of v7.
Re:Red Hat Enterprise Linux 8 released by vbezhenar on Tuesday May 07, 2019 @10:05AM (#19849426)
Do you think that there should be separate platform-sh interpreter for system shell scripts, and so on? That kind of strange for me. Probably difference is that shell is "complete" program, while Python is not.
Re:Red Hat Enterprise Linux 8 released by auscompgeek on Tuesday May 07, 2019 @10:09AM (#19849469)
The difference with system shell scripts is that you can't accidentally clobber libraries that the system tools require to work - shell scripts don't really have any notion of installable libraries.
Re:Red Hat Enterprise Linux 8 released by owl57 on Tuesday May 07, 2019 @10:45AM (#19849916)
It's not like you can't clobber PATH with ease and in diverse ways… It's just less easy to unclobber: huge hacks like Nix are born in this quest.
Re:Red Hat Enterprise Linux 8 released by pfranz on Tuesday May 07, 2019 @04:58PM (#19853388)
> huge hacks like Nix are born in this quest.

Would you mind elaborating on this? Maybe I'm using Linux wrong, but Nix seems like a huge step forward fixing a lot of my frustrations. Admittedly, I haven't used it in production.

One huge benefit of language-specific package managers is having multiple versions of packages on the same system and you can choose which you'd like for the project (without changing the OS). I feel like 10 years ago I heard a lot of grumbling about languages like Ruby or Python should just use apt/rpm, but I haven't see any OS package manager put much effort into this use-case (this is ignoring mac/win support). The closest I've seen is something like Red Hat's Software Collections.

Personally, I feel strongly that any software that's critical to your company should be decoupled from the OS. This is borne through painful and much delayed OS updates and following it makes things much easier long term.

My personal use-case is that different projects (working on multiple in tandem) need different stacks of versions. Also giving the ability to swap versions on the fly. Here's one package manager specifically designed for it https://github.com/nerdvegas/rez

Swapping versions in Linux is pretty heavy out of the box (with rpm/apt); download, remove old versions files, write new versions files. Only one installed at a time. a/b comparing libraries is a pain. For the things I need, I build things into folders like libjpeg-turbo/2.0.2 and nasm/2.14.02 and set the ./configure flags to point to these...basically a more ad hoc approach to what Nix does.

Where am I going wrong?

Re:Red Hat Enterprise Linux 8 released by alexlarsson on Tuesday May 07, 2019 @10:09AM (#19849472)
There isn't a history of issues with people wanting to update to a newer bash causing issues though.

Generally sticking with whatever bash your distro comes with is fine, whereas the services you deploy often depend on a particular version of python.

Re:Red Hat Enterprise Linux 8 released by derekp7 on Tuesday May 07, 2019 @12:26PM (#19850963)
There absolutely is a platform sh interpreter. That is why when ksh came out, it was called ksh instead of sh, so that /bin/sh would still function as expected (same with csh, bash, zsh, etc).

And many of these will emulate /bin/sh behavior when called as such.

Re:Red Hat Enterprise Linux 8 released by mbrumlow on Tuesday May 07, 2019 @10:10AM (#19849475)
Ubuntu had dash - a minimal sh implementation.

For the system I think it is a good idea to limit library interactions with things related to keeping the system running or booting.