|
a/src/python/recoll/setup.py.in |
|
b/src/python/recoll/setup.py.in |
|
... |
|
... |
5 |
sysname = os.uname()[0]
|
5 |
sysname = os.uname()[0]
|
6 |
top = os.path.join('..', '..')
|
6 |
top = os.path.join('..', '..')
|
7 |
|
7 |
|
8 |
library_dirs = [os.path.join(top, 'lib')]
|
8 |
library_dirs = [os.path.join(top, 'lib')]
|
9 |
libraries = ['recoll']
|
9 |
libraries = ['recoll']
|
10 |
runtime_library_dirs = []
|
10 |
|
11 |
try:
|
11 |
if os.environ.has_key('libdir') and os.environ['libdir'] != "":
|
12 |
runtime_library_dirs = [os.path.join(os.environ['libdir'], 'recoll')]
|
12 |
runtime_library_dirs = [os.path.join(os.environ['libdir'], 'recoll')]
|
13 |
except:
|
13 |
else:
|
14 |
pass
|
14 |
runtime_library_dirs = [os.path.join('@prefix@', 'lib', 'recoll')]
|
15 |
|
15 |
|
16 |
# Verify that the Recoll library was compiled with the PIC options
|
16 |
# Verify that the Recoll library was compiled with the PIC options
|
17 |
localdefs = os.path.join(top, 'mk', 'localdefs')
|
17 |
localdefs = os.path.join(top, 'mk', 'localdefs')
|
18 |
try:
|
18 |
try:
|
19 |
lines = open(localdefs, 'r').readlines()
|
19 |
lines = open(localdefs, 'r').readlines()
|