Failed to release snap

Ok I followed the steps in Core22 gnome extension and broken symlinks viz

  1. unsquashfs <snapname>
  2. rm squashfs-root/bin/python*
  3. snap pack squashfs-root

but step 3 fails because python3 cannot be found anymore:

$ snap pack squashfs-root
2023/03/08 18:40:08.157998 container.go:215: in snap "pynsource": path "bin/python3" does not exist
error: cannot pack "squashfs-root": snap is unusable due to missing files

Presumably we want to keep at least one real python3 binary around to run the python app inside the snap - why is the workaround deleting all the python binaries in step 2? How is my python app supposed to run?

Update: Or are you referring to your workaounds marked with #WORKAROUND made to snapcraft.yaml Python Plugin + Gnome 3 Extension Error My https://github.com/abulka/pynsource/blob/master/snap/snapcraft.yaml already has some of those workarounds (as inherited from the yt-dlg snapcraft.yaml) but the build-environment: paths are different and I have no stage: step. Ironically, I tried adding the additional workarounds and got a similar error Cannot pack snap file: Command '['snap', 'pack', '--filename', 'pynsource_0+git.11509e6_amd64.snap', '--compression', 'xz', PosixPath('/root/prime'), PosixPath('/root/project')]' returned non-zero exit status 1. (container.go:215: in snap "pynsource": path "bin/python3" does not exist error: cannot pack "/root/prime": snap is unusable due to missing files)