Call pdflatex from snap

Hi,
I have a small command-line tool in python and use pdflatex to export data as pdf. Now I packed the tool as snap, but the export does not work because I can’t run pdflatex as a subprocess.

Adding texlive as a dependency with stage-package: - texlive, fails:
Error:package contains external symlinks: usr/share/texlive/texmf-dist/ls-R

I found one repo that includes a texlive installation (https://github.com/otfried/ipe-tools/blob/master/snap/snapcraft.yaml) to be able to use pdflatex.

Is that the way to go or is there a better solution?

Thank you!