I consider torchinterp1d to be in error, as its setup.py imports torch in order to ensure that it’s installed, yet the setup.py makes no use of torch after that, and the package already declares torch as a runtime dependency anyway (so normal package installation will already ensure that torch is installed — except that, because of the torch import, the requirements can’t even be determined when installing from source unless torch is already in the environment). I suggest you file a PR with the project to remove these lines.
5 Likes