Skip to content

contextvars requirement #66664

Answered by lkubb
yangskyboxlabs asked this question in Q&A
Discussion options

You must be logged in to vote

Salt-SSH works by packing Salt and dependencies into a so-called thin tarball. Essentially, it copies Salt + its hard dependencies from the master into a tar archive that is sent to the target. In case Salt-SSH connects to a target with a Python version of 3.6 or lower, it needs a contextvars module that can be packed into the thin tar.

To discover the sources, salt.utils.thin imports the module and references <mod>.__file__. The stdlib contextvars imports from _contextvars itself, which does not work with this mechanism, while the library is self-contained.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by yangskyboxlabs
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants