I have generated a Python module using SWIG and Python 2.7 64 bit.
This Python module can successfully be imported (i.e. used) with this Python version, but when trying to import the module using a different Python version, let's say 3.5 64 bit, it fails.
Inversely, when I generate the same Python module using SWIG and Python 3.5 64 bit, it can successfully be imported (i.e. used) with this version, but not with Python 2.7 64 bit.
It would seem that SWIG generates a Python module just for that Python version that it was used upon the generation. Is this conclusion correct? If yes, what would be the approach to take to "tell" SWIG to generate a Python module that is Python version agnostic?