|
a/src/python/recoll/setup.py.in |
|
b/src/python/recoll/setup.py.in |
1 |
from distutils.core import setup, Extension
|
1 |
from distutils.core import setup, Extension
|
2 |
import os
|
2 |
import os
|
3 |
import sys
|
3 |
import sys
|
4 |
|
4 |
|
5 |
sysname = os.uname()[0]
|
5 |
sysname = os.uname()[0]
|
6 |
top = os.path.join('..', '..')
|
|
|
7 |
|
6 |
|
|
|
7 |
# For shadow builds: references to the source tree
|
|
|
8 |
top = os.path.join('@srcdir@', '..', '..')
|
|
|
9 |
pytop = '@srcdir@'
|
8 |
|
10 |
|
|
|
11 |
# For shadow builds: reference to the top of the local tree (for finding
|
|
|
12 |
# generated .h files, e.g. autoconfig.h)
|
|
|
13 |
localtop = os.path.join(os.path.dirname(__file__), '..', '..')
|
|
|
14 |
|
9 |
library_dirs = [os.path.join(top, '.libs')]
|
15 |
library_dirs = [os.path.join(localtop, '.libs')]
|
10 |
if "CYGWIN" in os.environ:
|
16 |
if "CYGWIN" in os.environ:
|
11 |
libraries = ['recoll', 'xapian', 'iconv', 'z']
|
17 |
libraries = ['recoll', 'xapian', 'iconv', 'z']
|
12 |
else:
|
18 |
else:
|
13 |
libraries = ['recoll']
|
19 |
libraries = ['recoll']
|
14 |
|
20 |
|
|
... |
|
... |
24 |
('UNAC_VERSION', '"1.0.7"'),
|
30 |
('UNAC_VERSION', '"1.0.7"'),
|
25 |
('RECOLL_DATADIR', '"@RECOLL_DATADIR@"')
|
31 |
('RECOLL_DATADIR', '"@RECOLL_DATADIR@"')
|
26 |
],
|
32 |
],
|
27 |
include_dirs = ['/usr/local/include',
|
33 |
include_dirs = ['/usr/local/include',
|
28 |
os.path.join(top, 'utils'),
|
34 |
os.path.join(top, 'utils'),
|
|
|
35 |
os.path.join(top, 'common'),
|
|
|
36 |
os.path.join(localtop, 'common'),
|
29 |
os.path.join(top, 'common'),
|
37 |
os.path.join(top, 'common'),
|
30 |
os.path.join(top, 'rcldb'),
|
38 |
os.path.join(top, 'rcldb'),
|
31 |
os.path.join(top, 'query'),
|
39 |
os.path.join(top, 'query'),
|
32 |
os.path.join(top, 'unac')
|
40 |
os.path.join(top, 'unac')
|
33 |
],
|
41 |
],
|
34 |
libraries = libraries,
|
42 |
libraries = libraries,
|
35 |
library_dirs = library_dirs,
|
43 |
library_dirs = library_dirs,
|
36 |
runtime_library_dirs = runtime_library_dirs,
|
44 |
runtime_library_dirs = runtime_library_dirs,
|
37 |
sources = ['pyrecoll.cpp'])
|
45 |
sources = [os.path.join(pytop, 'pyrecoll.cpp')])
|
38 |
|
46 |
|
39 |
module2 = Extension('rclextract',
|
47 |
module2 = Extension('rclextract',
|
40 |
define_macros = [('MAJOR_VERSION', '1'),
|
48 |
define_macros = [('MAJOR_VERSION', '1'),
|
41 |
('MINOR_VERSION', '0'),
|
49 |
('MINOR_VERSION', '0'),
|
42 |
('UNAC_VERSION', '"1.0.7"'),
|
50 |
('UNAC_VERSION', '"1.0.7"'),
|
43 |
('RECOLL_DATADIR', '"@RECOLL_DATADIR@"')
|
51 |
('RECOLL_DATADIR', '"@RECOLL_DATADIR@"')
|
44 |
],
|
52 |
],
|
45 |
include_dirs = ['/usr/local/include',
|
53 |
include_dirs = ['/usr/local/include',
|
46 |
os.path.join(top, 'utils'),
|
54 |
os.path.join(top, 'utils'),
|
47 |
os.path.join(top, 'common'),
|
55 |
os.path.join(top, 'common'),
|
|
|
56 |
os.path.join(localtop, 'common'),
|
48 |
os.path.join(top, 'internfile'),
|
57 |
os.path.join(top, 'internfile'),
|
49 |
os.path.join(top, 'rcldb'),
|
58 |
os.path.join(top, 'rcldb'),
|
50 |
],
|
59 |
],
|
51 |
libraries = libraries,
|
60 |
libraries = libraries,
|
52 |
library_dirs = library_dirs,
|
61 |
library_dirs = library_dirs,
|
53 |
runtime_library_dirs = runtime_library_dirs,
|
62 |
runtime_library_dirs = runtime_library_dirs,
|
54 |
sources = ['pyrclextract.cpp'])
|
63 |
sources = [os.path.join(pytop, 'pyrclextract.cpp')])
|
55 |
|
64 |
|
56 |
setup (name = 'Recoll',
|
65 |
setup (name = 'Recoll',
|
57 |
version = '1.0',
|
66 |
version = '1.0',
|
58 |
description = 'Query/Augment a Recoll full text index',
|
67 |
description = 'Query/Augment a Recoll full text index',
|
59 |
author = 'J.F. Dockes',
|
68 |
author = 'J.F. Dockes',
|