--- a/src/python/recoll/setup.py
+++ b/src/python/recoll/setup.py
@@ -1,4 +1,5 @@
from distutils.core import setup, Extension
+top = '../../'
module1 = Extension('recollq',
define_macros = [('MAJOR_VERSION', '1'),
@@ -9,37 +10,37 @@
'"/usr/local/share/recoll"')
],
include_dirs = ['/usr/local/include',
- '../utils',
- '../common',
- '../rcldb',
- '../query',
- '../unac'
+ top + 'utils',
+ top + 'common',
+ top + 'rcldb',
+ top + 'query',
+ top + 'unac'
],
libraries = ['xapian', 'iconv'],
library_dirs = ['/usr/local/lib'],
sources = ['recoll_query.cpp',
- '../common/rclconfig.cpp',
- '../common/rclinit.cpp',
- '../common/textsplit.cpp',
- '../common/unacpp.cpp',
- '../query/wasastringtoquery.cpp',
- '../query/wasatorcl.cpp',
- '../rcldb/pathhash.cpp',
- '../rcldb/rcldb.cpp',
- '../rcldb/rclquery.cpp',
- '../rcldb/searchdata.cpp',
- '../rcldb/stemdb.cpp',
- '../rcldb/stoplist.cpp',
- '../unac/unac.c',
- '../utils/base64.cpp',
- '../utils/conftree.cpp',
- '../utils/debuglog.cpp',
- '../utils/md5.cpp',
- '../utils/pathut.cpp',
- '../utils/readfile.cpp',
- '../utils/smallut.cpp',
- '../utils/transcode.cpp',
- '../utils/wipedir.cpp'
+ top + 'common/rclconfig.cpp',
+ top + 'common/rclinit.cpp',
+ top + 'common/textsplit.cpp',
+ top + 'common/unacpp.cpp',
+ top + 'query/wasastringtoquery.cpp',
+ top + 'query/wasatorcl.cpp',
+ top + 'rcldb/pathhash.cpp',
+ top + 'rcldb/rcldb.cpp',
+ top + 'rcldb/rclquery.cpp',
+ top + 'rcldb/searchdata.cpp',
+ top + 'rcldb/stemdb.cpp',
+ top + 'rcldb/stoplist.cpp',
+ top + 'unac/unac.c',
+ top + 'utils/base64.cpp',
+ top + 'utils/conftree.cpp',
+ top + 'utils/debuglog.cpp',
+ top + 'utils/md5.cpp',
+ top + 'utils/pathut.cpp',
+ top + 'utils/readfile.cpp',
+ top + 'utils/smallut.cpp',
+ top + 'utils/transcode.cpp',
+ top + 'utils/wipedir.cpp'
])