I'm trying to automate the creation of Python Wheels for Linux, using the manylinux project (https://www.python.org/dev/peps/pep-0571/). In order to create Wheels that work on
many different versions of Linux Python (libpython27.so) can't be linked to the Python extension - Python symbols need to be resolved at run-time. I'm not which compiler flags to add, or how to add them using CMake. From many searches I have found the following links are the closely related:
However both projects are very complex so I'm unable to find exactly how they resolved it. Any hints on how to achieve this are appreciated.
Please keep in mind both CMake and SWIG are fairly new to me. Any other suggestions/improvements to the CMakeLists file are very welcome.