I have made a .so
module with boost.python and can import it from local folder.
|--my_class.so
|--python_code.py
in python_code.py
from my_class import *
Obviously if I put python_code.py
in a different folder, from my_class import *
would fail.
I am wondering if there is a way that I can "install" my_class.so
in a gobal package location that I can import it from any python script. So my_class
has the same status as packages like numpy
.