| 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.
| 2 | No.2 Revision |
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 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.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.