Python and other scripting languages removed from future OS

Posted on
Wed Jun 05, 2019 7:32 am
Different Computers offline
User avatar
Posts: 1908
Joined: Jan 02, 2016
Location: East Coast

Python and other scripting languages removed from future OS


SmartThings refugee, so happy to be on Indigo. 10.13.6 on an i5 MBP w/Harmony Hub, Hue, DomoPad, Dynamic URL, Device Extensions, HomeKit Bridge, MatplotLib, Plex, uniFAP, Wunderground, Nanoleaf, LED Simple Effects, Airfoil Pro, Grafana.

Posted on
Wed Jun 05, 2019 7:39 am
kw123 offline
User avatar
Posts: 6582
Joined: May 12, 2013
Location: Dallas, TX

Python and other scripting languages removed from future OS

The scary one:
“Use of Python 2.7 isn’t recommended as this version is included in macOS for compatibility with legacy software. Future versions of macOS won’t include Python 2.7. Instead, it’s recommended that you run python3 from within Terminal. “

Karl
Ps now I know what I will do in my spare time.

Sent from my iPhone using Tapatalk

Posted on
Wed Jun 05, 2019 8:11 am
kw123 offline
User avatar
Posts: 6582
Joined: May 12, 2013
Location: Dallas, TX

Re: Python and other scripting languages removed from future

To the extreme that means:
OS X 10.16 will not support python 2.7( out of the box)

That is ~17 month away. And then new mac hard will come will 10.16 installed.




Sent from my iPhone using Tapatalk

Posted on
Wed Jun 05, 2019 8:17 am
FlyingDiver offline
Posts: 3463
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Python and other scripting languages removed from future

I wouldn't put a whole lot of effort into any future changes at this point. This is all post-Catalina.

As I see it, there's two ways this could go:

1. Indigo switches to Python3, which requires the user to install an "additional package". Requires lots of work for both Matt & Jay and all the plugin developers, plus anyone who's written embedded or external Python scripts. How much work will be required to bring that code up to Python3 is unknown at this point.

2. Indigo bundles the entire Python2 runtime into the server application, as they currently do for a number of packages (oauthlib, requests, etc). Then everything uses that version of Python instead of /usr/bin/python. Probably less work in the short term, but unknown for how long Python2 will be supported at all. Biggest problem will be the difficulty in using PIP to install new packages. Which is one of the reasons I started bundling the extra packages my plugins use into the plugin, rather than requiring the user install them.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Wed Jun 05, 2019 10:24 am
howartp offline
Posts: 3667
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Python and other scripting languages removed from future

Didn’t I read somewhere that all future purchases/renewals of Indigo come with a free Mac Pro?


Sent from my iPad using Tapatalk Pro

Posted on
Wed Jun 05, 2019 10:25 am
FlyingDiver offline
Posts: 3463
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Python and other scripting languages removed from future

howartp wrote:
Didn’t I read somewhere that all future purchases/renewals of Indigo come with a free Mac Pro?


Must have been one of Durosity's posts.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Wed Jun 05, 2019 4:21 pm
jay (support) offline
Site Admin
User avatar
Posts: 15690
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Python and other scripting languages removed from future

We've seen this coming for a long time (as have others), but I guess we've always hoped that Apple would change course. It's becoming more and more clear that Apple isn't interested in low-level automation, but will rather focus on a higher-level (read Shortcuts) customization/workflow automation solution. This probably makes sense from a strategic perspective given their target audience.

It's likely that we will indeed have to bundle Python with the Indigo install at some point (most likely we will take that opportunity to move to Python 3), which makes doing external package installs (via pip) something we'll have to account for in additional UI.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Wed Jun 05, 2019 4:52 pm
durosity offline
User avatar
Posts: 3810
Joined: May 10, 2012
Location: Newcastle Upon Tyne, Ye Ol' England.

Re: Python and other scripting languages removed from future

FlyingDiver wrote:
howartp wrote:
Didn’t I read somewhere that all future purchases/renewals of Indigo come with a free Mac Pro?


Must have been one of Durosity's posts.


Well I only ever suggest excellent ideas. Say a new Mac Pro and a couple of Pro Displays.. with stand?

Computer says no.

Posted on
Wed Jun 05, 2019 4:56 pm
howartp offline
Posts: 3667
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Python and other scripting languages removed from future

...and the wire to connect them together...

It’ll cost a fortune otherwise.


Sent from my iPhone using Tapatalk Pro

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest