Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Solution: I use the rpath link option to store the entire path to the .so library. The relevant part of the setup.py file is as follows:

import os from os.path import expanduser

HOME = expanduser('~') QL_LIBS = os.join(HOME, "directory of my .so library")

then create link arguments: extra_link_args = ['-Wl,-rpath,'+QL_LIBS]

check the result with ldd: you will find that the entire path to the .so library has been stored.

Solution: I use the rpath link option to store the entire path to the .so library. The relevant part of the setup.py file is as follows:

import os
from os.path import expanduser

expanduser

HOME = expanduser('~') QL_LIBS = os.join(HOME, "directory of my .so library")

library")

then create link arguments: arguments:

extra_link_args = ['-Wl,-rpath,'+QL_LIBS] 

['-Wl,-rpath,'+QL_LIBS]

check the result with ldd: you will find that the entire path to the .so library has been stored.