I am writing a Python app that works with graphics and depends on PySDL2 library. PySDL2 depends on compiled SDL2
binary library that can be downloaded from SDL site. I wrote a bootstrap script to automate the process, but it works only for Windows, because there is no binary download for Linux.
The question is how to make that binary SDL2 download for Linux?
It is not clear if it is possible to create .so file that will work on every Linux at all, if it is because it is impossible to create .so file that will work on every CPU, and that's mostly because it is not clear if any work was already done in this direction (I am sure people tried to research this problem) and if it is, then why the format of portable .so file (cross-platform against different distributions and CPUs) was not adopted.
UPDATE: I don't mind installing dependencies (packages) with updates and security fixes provided by Linux community, but this should be done in user space, and I need the ability to automate it with portable scripts.