Modify setup.py to make submodules available
When trying to use EDFTomoScan
outside of the source directory:
from tomoscan.esrf.edfscan import EDFTomoScan
we get:
ModuleNotFoundError: No module named 'tomoscan.scanbase'
It might be due to setup.py
not creating the modules at installation.
I can correct it (namely add packages=
and package_dir=
arguments in setup()
), but perhaps setup.py
does some automatic discovery of modules - it is a bit too complicated for me.