Build a snap with any version of Python I want

Does anyone have a concise example of a Python 3.x (x!=6) build that someone can point me to? I’m not a snap n00b per se, but I feel like trying to follow the above would set me on course for some trial-and-error. It would be great to just have a “recipe”.

I came across How do I correctly install a custom python version and a local wheel package? which does provide a maybe-working Python 3.7 example, though one of the posts in that thread indicates that it wouldn’t work on arm (which I do need it to).

Based on other threads around here (e.g. Proposal: Extensive Python version support for Python plugin), I’m not the only one working for a way to do this. Until minor version pinning is implemented in snapcraft, it would be great to have a fool-proof example.

1 Like