Repository navigation
SEP 20: Add python version support SEP - #26
Conversation
|
Thanks, a tough issue covered well. |
|
As a salt user, I would expect a PEP named "Python Version Support" to not only cover python version deprecation and how salt stop supporting those versions but also what's saltstack goal in supporting newer python versions and how the core team is organized to reach this goal. This is especially important when dealing with new OS/distribution versions that come with new python version packaged like we see at the moment with python 3.8 and the capacity of salt to support this new OS/distribution versions. |
|
#26 (comment) |
|
@sblaisot good point. I'll add a note that we should check for both python version's being removed or added at the beginning of a development cycle, so we can ensure we add it. To clarify around python 3.8 that will be added in Sodium. |
|
This is SEP 20 - feel free to update your files :) |
|
Can i get re-review here or any further concerns? @twangboy @max-arnold @myii @aplanas @OrangeDog @sblaisot |
OrangeDog
left a comment
There was a problem hiding this comment.
Capitalisation is also inconsistent.
|
@OrangeDog @myii made updates. ready for re-review. thanks |
|
okay ready for re-review @myii thanks :) |
|
thanks for catching that let me make the H uppercase. |
|
This SEP has entered the final comment period, let us know if there's anything else that needs to be addressed! |
|
I like the level of detail WRT different platforms, but there should probably be a matrix listed somewhere on the docs which details which platforms have a bundled Python, which Python release will be bundled, etc. Additionally, how does adding pip packages work for bundled Python? If these aren't "onedir" POP builds (I didn't see this specified), that makes installing pip packages problematic, as the default method Salt uses to decide which pip to use is to run I'm not sure any of these concerns merits changes to the contents of this SEP, but at minimum there should be open issues labeled |
|
We can still pip install with the one-dir pop-build distributions, so no issue there. IIUC the plan is to provide pip installable Salt (for which this SEP will be particularly relevant), and then pop-build packages via repo.saltstack.com, which will bundle Python. |
|
So, the POP builds will be onedir and not single-binary? That question really wasn't answered. I'm aware of how onedir builds work, the question is an effort to confirm that basic pip functionality will be present in these builds. With so many states and execution modules relying on third-party Python bindings, pip support is pretty important to Salt users. |
|
On the subject of bundling... Many users and formulae use |
Both. IIRC, the single-binary can be installed in a onedir fashion. I could be wrong and pop-build has to produce two different packages, but my understanding is that regardless of the mechanics, it's pretty trivial to get both onedir and single-binary.
Are you referring to module dependencies, or salt core dependencies? Salt core dependencies will be included. But for the module dependencies... my gut says that would break unless we add the system library to the PYTHONPATH. I'll double check on that. |
Yes, module dependencies. Also, I don't think that would work unless the system and bundled versions are the same? At which point what was the point of bundling it? I raised similar issues above but that got shut down because it's for a future SEP. It's not even been proposed yet, but it seems like a forgone conclusion you're going to start bundling python, whatever anyone says. And if it's supposed to start happening in Sodium, it's rather late to be leaving it... |
|
Some clarification:
only for compiled packages. If it's a pure python package, and I think even if there's an ABI compatibility, but for sure pure python packages would work just fine. |
The project has been renamed.
|
This SEP has received enough votes to be accepted 🎉 |
SEP to update python version support policy for Salt.