News for hackers. Stuff that matters.
Re:Apple removes Python 2.7 in macOS 12.3 beta by nicbou on Friday January 28, 2022 @10:13AM (#30115563)
Does MacOS ship Python 3 by default? I've been using homebrew for so long that I forgot.
Re:Apple removes Python 2.7 in macOS 12.3 beta by Retr0 on Friday January 28, 2022 @10:18AM (#30115632)
M1 MacOS 12.2, never installed any dev tools / homebrew

python --version

Python 2.7.18

python3 --version

xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.

Re:Apple removes Python 2.7 in macOS 12.3 beta by eli on Friday January 28, 2022 @10:15AM (#30115598)
It did as python3, but the default python was still 2.7, though it's had a deprecation warning for a bit.
Re:Apple removes Python 2.7 in macOS 12.3 beta by WesolyKubeczek on Friday January 28, 2022 @10:24AM (#30115709)
It's possible there was a script lurking somewhere under /System/Library/CoreServices that might have needed Python 2. The script got rewritten/snipped off, and there you go.
Re:Apple removes Python 2.7 in macOS 12.3 beta by koenigdavidmj on Friday January 28, 2022 @10:18AM (#30115622)
Up until 12.3, it did.

Now, it's included in the CLI tools. You know how when you run 'clang' or any of those, it's a wrapper that offers to download the real tool for you? That's how the 'python3' binary works now.

Re:Apple removes Python 2.7 in macOS 12.3 beta by nickysielicki on Friday January 28, 2022 @11:37AM (#30116963)
Is there any chance that they’ve stopped confusing everyone by aliasing gcc to clang transparently? That’s the change I really want to see. The programs inherently accept different arguments. The amount of GitHub issues that boil down to someone thinking they’re calling GCC but calling Clang instead is staggering. Let my build fail.
Re:Apple removes Python 2.7 in macOS 12.3 beta by gsnedders on Friday January 28, 2022 @10:19AM (#30115647)
macOS has never shipped with python3 by default; it's only ever been a shim like that.
Re:Apple removes Python 2.7 in macOS 12.3 beta by drclau on Friday January 28, 2022 @10:29AM (#30115807)
% python3 --version

Python 3.8.9

macOS 12.2 (Intel), Xcode 13.2.1, no homebrew, no macports

Re:Apple removes Python 2.7 in macOS 12.3 beta by jahewson on Friday January 28, 2022 @11:51AM (#30117170)
It’s bundled with Xcode.
Re:Apple removes Python 2.7 in macOS 12.3 beta by msoad on Friday January 28, 2022 @10:15AM (#30115588)
They decided to not ship anything and let you download it yourself.
Re:Apple removes Python 2.7 in macOS 12.3 beta by gsnedders on Friday January 28, 2022 @10:18AM (#30115631)
This is true, but it's also worthwhile noting that python3 is included with Xcode (or the Xcode Command Line Tools).
Re:Apple removes Python 2.7 in macOS 12.3 beta by nottorp on Friday January 28, 2022 @11:09AM (#30116465)
Which you need anyway for brew/port, so most people that need a python in the command line will get it installed without noticing.
Re:Apple removes Python 2.7 in macOS 12.3 beta by metageneralist on Friday January 28, 2022 @10:19AM (#30115643)
and I like it this way
Re:Apple removes Python 2.7 in macOS 12.3 beta by Maursault on Friday January 28, 2022 @11:09AM (#30116469)
What's homebrew? I've been using macports so long, I've never heard of it.
Re:Apple removes Python 2.7 in macOS 12.3 beta by Synaesthesia on Friday January 28, 2022 @12:17PM (#30117531)
It's the other big package manager for Mac OS (and Linux) other than Macports.
Re:Apple removes Python 2.7 in macOS 12.3 beta by Maursault on Saturday January 29, 2022 @05:21PM (#30131174)
Thanks, but I was trolling the shameless, senseless and topically irrelevant plug for homebrew. Get homebrew! Don't miss out! Everyone's doing it! All the hip youngsters know!

Come on. ><