Currently, building the Python interface is a complex multi-step procedure that goes through building and installing the main system, and then building and installing the Python interface with a different build tool (setuptools.py).
With the more recent CMake versions, there might be better support for building Python code directly. Also, we could simply skip the part where you install the Python interface as a module and instead directly copy or otherwise place the interface in the Python path. In any case, the documentation of the FindPython3() module might give some ideas on how to do this.
If we cannot build the Python interface easily with the help of CMake, at least add transitive dependencies automatically when compiling the interface.
After several tries, I decided to build the Python interface completely with Wavepacket. This feels a bit ugly on installation, but that might befit the dependencies and so on.
Breaking change: The module "wavepacket.units" is automatically imported when you import wavepacket. This changes some syntax.
Diff:
Diff:
Diff: