|
a/src/python/recoll/setup.py |
|
b/src/python/recoll/setup.py |
1 |
from distutils.core import setup, Extension
|
1 |
from distutils.core import setup, Extension
|
|
|
2 |
top = '../../'
|
2 |
|
3 |
|
3 |
module1 = Extension('recollq',
|
4 |
module1 = Extension('recollq',
|
4 |
define_macros = [('MAJOR_VERSION', '1'),
|
5 |
define_macros = [('MAJOR_VERSION', '1'),
|
5 |
('MINOR_VERSION', '0'),
|
6 |
('MINOR_VERSION', '0'),
|
6 |
('UNAC_VERSION', '"1.0.7"'),
|
7 |
('UNAC_VERSION', '"1.0.7"'),
|
7 |
('STATFS_INCLUDE', '"sys/mount.h"'),
|
8 |
('STATFS_INCLUDE', '"sys/mount.h"'),
|
8 |
('RECOLL_DATADIR',
|
9 |
('RECOLL_DATADIR',
|
9 |
'"/usr/local/share/recoll"')
|
10 |
'"/usr/local/share/recoll"')
|
10 |
],
|
11 |
],
|
11 |
include_dirs = ['/usr/local/include',
|
12 |
include_dirs = ['/usr/local/include',
|
12 |
'../utils',
|
13 |
top + 'utils',
|
13 |
'../common',
|
14 |
top + 'common',
|
14 |
'../rcldb',
|
15 |
top + 'rcldb',
|
15 |
'../query',
|
16 |
top + 'query',
|
16 |
'../unac'
|
17 |
top + 'unac'
|
17 |
],
|
18 |
],
|
18 |
libraries = ['xapian', 'iconv'],
|
19 |
libraries = ['xapian', 'iconv'],
|
19 |
library_dirs = ['/usr/local/lib'],
|
20 |
library_dirs = ['/usr/local/lib'],
|
20 |
sources = ['recoll_query.cpp',
|
21 |
sources = ['recoll_query.cpp',
|
21 |
'../common/rclconfig.cpp',
|
22 |
top + 'common/rclconfig.cpp',
|
22 |
'../common/rclinit.cpp',
|
23 |
top + 'common/rclinit.cpp',
|
23 |
'../common/textsplit.cpp',
|
24 |
top + 'common/textsplit.cpp',
|
24 |
'../common/unacpp.cpp',
|
25 |
top + 'common/unacpp.cpp',
|
25 |
'../query/wasastringtoquery.cpp',
|
26 |
top + 'query/wasastringtoquery.cpp',
|
26 |
'../query/wasatorcl.cpp',
|
27 |
top + 'query/wasatorcl.cpp',
|
27 |
'../rcldb/pathhash.cpp',
|
28 |
top + 'rcldb/pathhash.cpp',
|
28 |
'../rcldb/rcldb.cpp',
|
29 |
top + 'rcldb/rcldb.cpp',
|
29 |
'../rcldb/rclquery.cpp',
|
30 |
top + 'rcldb/rclquery.cpp',
|
30 |
'../rcldb/searchdata.cpp',
|
31 |
top + 'rcldb/searchdata.cpp',
|
31 |
'../rcldb/stemdb.cpp',
|
32 |
top + 'rcldb/stemdb.cpp',
|
32 |
'../rcldb/stoplist.cpp',
|
33 |
top + 'rcldb/stoplist.cpp',
|
33 |
'../unac/unac.c',
|
34 |
top + 'unac/unac.c',
|
34 |
'../utils/base64.cpp',
|
35 |
top + 'utils/base64.cpp',
|
35 |
'../utils/conftree.cpp',
|
36 |
top + 'utils/conftree.cpp',
|
36 |
'../utils/debuglog.cpp',
|
37 |
top + 'utils/debuglog.cpp',
|
37 |
'../utils/md5.cpp',
|
38 |
top + 'utils/md5.cpp',
|
38 |
'../utils/pathut.cpp',
|
39 |
top + 'utils/pathut.cpp',
|
39 |
'../utils/readfile.cpp',
|
40 |
top + 'utils/readfile.cpp',
|
40 |
'../utils/smallut.cpp',
|
41 |
top + 'utils/smallut.cpp',
|
41 |
'../utils/transcode.cpp',
|
42 |
top + 'utils/transcode.cpp',
|
42 |
'../utils/wipedir.cpp'
|
43 |
top + 'utils/wipedir.cpp'
|
43 |
])
|
44 |
])
|
44 |
|
45 |
|
45 |
|
46 |
|
46 |
setup (name = 'RecollQuery',
|
47 |
setup (name = 'RecollQuery',
|
47 |
version = '1.0',
|
48 |
version = '1.0',
|