Reputation: 91
Sublime Text 3 is developed in Python 3.3 and all plugins run via its internal Python environment (3.3). Now, I want to use packages that are compatible with Python 3.6+ in my Sublime plugin. How can I overcome this conflict?
Upvotes: 2
Views: 409
Reputation: 102902
Sublime Text 4 is in "discreet beta" right now, only for registered users. It now comes with two versions of plugin_host
, one running Python 3.3 and the other using Python 3.8 - you can read about the new API Environments in the dev docs. Briefly, if you want your plugin to run 3.8, create a .python-version
file in the root of your package containing the text 3.8
. Anything else, no text at all, or no file at all means your plugin will run with 3.3.
You can find the dev builds (currently) on the Sublime Text Discord Server under #announcements
. However, if you are going to use the dev builds (which are quite stable, BTW), please make sure you're always upgraded to the latest one, and you post bugs/feedback to aid in the development effort. I think a true public beta (still only for registered users) will be forthcoming fairly soon.
Upvotes: 3