I am creating a python package based on this repo. The package has few cpp files which are compiled when I build the package using setup.py and running pip install .
This generates _C.cpython-36m-x86_64-linux-gnu.so
file in my package installation directory. To import this dll (.so) file all I have to do is
from . import _C
(something like this)
Now the imported _C object points to _C.cpython-36m-x86_64-linux-gnu.so
. I don't understand how _C object gets linked to the specific .so file. Is that information written in any of the metadata files while the package is being built?