My Python app uses Python 3.6.7, but the final Snap ends up with a different version of Python (Python 3.5 I think), which isn’t compatible with my script, because I use some of the newer features in Python 3.6+.
My app uses Python 3.6.7 and GTK3+.
How can I make my Snap use a newer version of Python?
My snapcraft.yaml file is:
name: openresizer # you probably want to 'snapcraft register <name>' #base: core18 # the base snap is the execution environment for this snap version: '1.0' # just for humans, typically '1.2+git' or '1.3.2' summary: Batch image resizer with a GUI # 79 char long summary description: | OpenResizer is an open-source batch image resizing software with a GUI. It is designed to be fast and easy-to-use. grade: devel # must be 'stable' to release into candidate/stable channels confinement: devmode # use 'strict' once you have the right plugs and slots icon: gui/icon.png architectures: - build-on: [amd64, i386] run-on: all parts: main-part: # See 'snapcraft plugins' plugin: python python-version: python3 stage-packages: - python3-pil - python3-gi wrapper: plugin: dump source: https://github.com/jrezai/openresizer.git source-type: git after: [desktop-gtk3] prepare: | chmod +x bin/openresizer.py organize: glade_files: bin/glade_files apps: openresizer: command: desktop-launch $SNAP/bin/openresizer.py plugs: [x11, unity7, pulseaudio, wayland, desktop, desktop-legacy, gsettings, home]