Control: tags -1 +wontfix
I tried this and it turns to be a little bit complicated to support. The
code change can be found in the git history, which was reverted by me.
The problem is that the file libtorch_python.so.* is specific to one
python version, and cannot be shared between py3.11 and py3.12. One of
them will break if we do setup.py for both versions.
https://github.com/pytorch/pytorch/issues/56046
Upstream is not interested to fix this since libtorch_python.so is
already big enough (25MB).
I don't want to spend my time for simultaneously supporting multiple
python versions anymore. And I don't see any problem by only supporting
the default python version. A couple of lines of code change can limit
reverse dependencies to a single python version.
Patch is appreciated if anybody can make it work. Make sure that both
py3.11 and py3.12 `import torch` works correctly.