Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add .python-version to support newest ST4 #174

Merged
merged 1 commit into from
Sep 13, 2023

Conversation

gerardroche
Copy link
Contributor

To provide for backward compatibility, Sublime Text 4050 will continue
to run all plugins using Python 3.3.

Any package that wishes to use Python 3.8 must create a file named
.python-version in the root of the packages. This file should contain
either the text 3.3 or 3.8 to select the version of Python to use. If a
file named .python-version is not present, or it contains any value
other than 3.8, then Python 3.3 will be used.

All plugins in a package will use the same version of Python. Any
package with a .python-version file containing 3.8 loaded in older
builds of Sublime Text will try to run the plugins using Python 3.3.

https://www.sublimetext.com/docs/api_environments.html#python-version

> To provide for backward compatibility, Sublime Text 4050 will continue
> to run all plugins using Python 3.3.
>
> Any package that wishes to use Python 3.8 must create a file named
> .python-version in the root of the packages. This file should contain
> either the text 3.3 or 3.8 to select the version of Python to use. If a
> file named .python-version is not present, or it contains any value
> other than 3.8, then Python 3.3 will be used.
>
> All plugins in a package will use the same version of Python. Any
> package with a .python-version file containing 3.8 loaded in older
> builds of Sublime Text will try to run the plugins using Python 3.3.
>
> https://www.sublimetext.com/docs/api_environments.html#python-version
@rchl
Copy link
Member

rchl commented Sep 13, 2023

Any specific benefits that you have in mind with that?

Since we have separate release branch for ST4 anyway, I don't really see any problem with that but just curious.

@deathaxe
Copy link
Member

All plugins should opt-in to more recent plugin-host if possible. That's no question of "benefit" but the possibility of hopefully getting rid of the older one at some point.

@rchl rchl merged commit d0cd911 into SublimeText:master Sep 13, 2023
@gerardroche
Copy link
Contributor Author

Origami seems to work fine in ST4 and Python 3.8. So now Origami runs in the newer Python 3.8 host in ST4. There are probably some trivial benefits in terms of performance, but as deathaxe says, it's really more about future compatibility.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants