Re:Apple removes Python 2.7 in macOS 12.3 beta
by innocentoldguy on Friday January 28, 2022 @11:54AM
(#30117232)
Apple ships with a number of utilities installed that require Python, like smtpd.py.
[ Parent
| on HN ]
Re:Apple removes Python 2.7 in macOS 12.3 beta
by ArchOversight on Friday January 28, 2022 @12:00PM
(#30117309)
Where does this utility exist? I can't find it on my macOS installation.
Re:Apple removes Python 2.7 in macOS 12.3 beta
by arihant on Friday January 28, 2022 @12:12PM
(#30117472)
A lot (all?) has been cleared out in Monterey. I can’t find smtpd or xattr’s scripts that required the previous version. I think whatever remained before 12.3 were Automator’s py scripts. But I don’t know what scripts those were.
Re:Apple removes Python 2.7 in macOS 12.3 beta
by kemayo on Friday January 28, 2022 @12:13PM
(#30117487)
Mine does seem to contain `/usr/bin/smtpd.py` with a modified date of January 22nd. It's an installation that's been updated through a number of versions of macOS, though.
Re:Apple removes Python 2.7 in macOS 12.3 beta
by ArchOversight on Friday January 28, 2022 @01:45PM
(#30118702)
Ah, I see...
It contains the following shebang:
#!/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -R
Which continues to work since it's a system framework.
Re:Apple removes Python 2.7 in macOS 12.3 beta
by innocentoldguy on Friday January 28, 2022 @12:41PM
(#30117866)
I'm running Monterey on a brand new machine (no updates from older versions of macOS) and mine is in /usr/bin/.
Re:Apple removes Python 2.7 in macOS 12.3 beta
by ArchOversight on Friday January 28, 2022 @01:46PM
(#30118709)
It seems that Spotlight doesn't index that folder, hence why I didn't find it in my quick search.
I see it now, but it uses a shebang that points to the system framework python:
#!/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -R