I found out that I can specify the py_modules via the setup.py file in the same directory as my scripts. In this way when setuptools runs it will read the information there in the same way as in a non snapcraft build environment.
1 Like