Bug#1057644: multiple python versions in a single .deb package
Hi, On 2024-01-01 06:21, Mo Zhou wrote: 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. Thanks a lot for giving this a shot. This means that all reverse dependencies of pytorch will have to support default Python only. Best wishes, Andrius
Bug#1057644: multiple python versions in a single .deb package
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.