Using python3.6 from core18 snap

In my effort to reduce the overall size of the snaps I publish, I am looking for ways to reduce their installed footprint. In such an effort I want to be able to use the python that is shipped as part of core18 snap instead of shipping my own copy.

I am aware in the past some people were able to do that, so some pointers on how to achieve that or a working example would be very helpful.

Ok, that proved to be simpler than I had anticipated, here is the change I did to achieve that https://github.com/deskconn/deskconnd/blob/903d67238c6000c49e19e1afbb35ae2ffafc85af/.snapcraft.yaml#L46 – Doing that brought down the snap size from 10MBs to 2MBs.

1 Like