Error: invalid command 'bdist_wheel'

@sergiusens
Thanks for reply. I noticied that usr/lib/python3/dist-packages is not in sys.path, $SNAP/usr/lib/python3/dist-packages is neither in sys.path so within snap sandbox, python modules in $SNAP/usr/lib/python3/dist-packages can’t be imported. I think this is a bug. So the following worked for me:

name: yacron
version: 1.0.0
summary: yacron
description: A modern Cron replacement that is Docker-friendly

base: core20
confinement: devmode

parts:
  yacron:
    plugin: python
    build-environment:
      - PYTHONPATH: "$SNAPCRAFT_PART_INSTALL/usr/lib/python3/dist-packages"
    stage-packages:
      - python3-wheel
    python-packages:
      - yacron
3 Likes