Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

deef

macrumors member
Original poster
Jan 10, 2007
59
22
See https://forums.macrumors.com/threads/are-the-scripting-languages-really-gone.2242387/ for background...

macOS Catalina 10.15 release notes said:
Scripting language runtimes such as Python, Ruby, and Perl are included in macOS for compatibility with legacy software. Future versions of macOS won’t include scripting language runtimes by default, and might require you to install additional packages. If your software depends on scripting languages, it’s recommended that you bundle the runtime within the app.
 
I can check next I boot up Monterey, but I will say this; It doesn't really matter, because, well, I needed Python 3 for something and "brew install Python" and I had it. It's not that big a deal. It's just that Apple doesn't package them with the OS, they're still perfectly available for macOS regardless.



Addendum: Had a quick check. They're still there on my Monterey install, but I can't guarantee they haven't been installed through brew, but it feels unlikely I'd have a Python 2.7 that way since I only installed 3.9 myself at least :)
 
  • Like
Reactions: Tagbert
I haven't personally checked, but others have reported that yes Python2, Ruby, and Perl are still there. But, if you try to run any scripts that utilize this language, you will get a warning in terminal. In fact, if you try and run a py2 script, the user will also get a pop-up in the GUI.

I am guessing this is the last version of macOS that will have scripting languages installed. Going forward, you will need to package and install your own.
 
Personally, I think it might be better if the customer had to install those scripting languages themselves. I've heard the scripting languages that come with the OS often are outdated already, and Apple neglects to keep them updated—is that true?
 
Personally, I think it might be better if the customer had to install those scripting languages themselves. I've heard the scripting languages that come with the OS often are outdated already, and Apple neglects to keep them updated—is that true?
Yes and no depending on how you look at things. The version of Python in macOS Big Sur, is 2.7.16. That's not terribly outdated for Python2; The latest is 2.7.18 - Python3 exists but is effectively a different language. The version of Ruby is 2.6.3p62 from 2019 and the version of Perl on my Big Sur is 2021, but I think that might be a brew install, it's in /usr/local/bin so that seems like a brew install.

In any case it's not like they're unusably old or anything and it's common for software distributions to feature-freeze things and only patch security updates in.
It's not as bad as a lot of other software Apple ships with, like bash which has been stuck at 3.2 since forever, or nano which is version 2.0. Now if I ask for its version it does at least say it was recently compiled so Apple very likely has a fork of 2.0.6 that they keep security patching and such.
Or well I don't have to say they probably keep their own fork; We know they do, here it is
Hasn't been touched in two years though so the recent compilation is probably just cause it gets auto-compiled for continuous integration or something when they make distribution images of macOS or something.

In short though, a lot of the Unix-expected software that ships with macOS isn't the latest feature releases. Doesn't mean they're not kept up to date in terms of security patches, but they usually quite far behind on feature releases. But that's why we have fink, brew and MacPorts, right? :)
 
Correction to my last post. The GitHub mirror had its repo refreshed two years ago. If you actually go to Apple's open source page and download the nano project for macOS 11.3, it was last updated in 2014
1623762690012.png
 
My work machine, which is almost untouched in terms of third-party software, has Python 3.8.2 (on OS 11.4). I certainly didn't install it manually.

Edit: It may have come in with Xcode.
 
What do you mean there? No version of Python 3 ships with macOS. If you have 3.8.2 you've installed it yourself. macOS only ships with 2.7.16
Clean install of Monterey has python3 included. /usr/bin/python3 is 3.8.2 and it has the same date as all the rest in /usr/bin.

Same version in Big Sur.

My brew installed version is 3.9.5 - but that is only installed in Big Sur, not Monterey.
 
Clean install of Monterey has python3 included. /usr/bin/python3 is 3.8.2 and it has the same date as all the rest in /usr/bin.

Same version in Big Sur.

My brew installed version is 3.9.5 - but that is only installed in Big Sur, not Monterey.

Hm. That's odd. I had 3.8 in there too but thought I had added it myself because I could've sworn Apple only included 2.7 and said "We're not doing this anymore, you figure it out"
 
Hm. That's odd. I had 3.8 in there too but thought I had added it myself because I could've sworn Apple only included 2.7 and said "We're not doing this anymore, you figure it out"
Python 3 definitely included in clean install of Big Sur and Monterey. Not in High Sierra. I haven't checked Mojave and Catalina

Note that Python (v2) was 2.7.16 in High Sierra, still the same in Monterey.
 
Python 3 definitely included in clean install of Big Sur and Monterey. Not in High Sierra. I haven't checked Mojave and Catalina

Note that Python (v2) was 2.7.16 in High Sierra, still the same in Monterey.

This is only partially true. Python 3 is NOT included in Big Sur & Monterey. However, Apple installs a stub python linked to /usr/bin/python3 during a first install. The first time you run python3, you are asked to install XCode Command Line Tools. This includes python3.
 
  • Like
Reactions: gilby101
This is only partially true. Python 3 is NOT included in Big Sur & Monterey. However, Apple installs a stub python linked to /usr/bin/python3 during a first install. The first time you run python3, you are asked to install XCode Command Line Tools. This includes python3.
Thanks for putting me straight on that. Sorry for any confusion I may have caused to others.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.