-
Notifications
You must be signed in to change notification settings - Fork 19
/
setup.py
36 lines (34 loc) · 1.35 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import os
from distutils.core import setup, Extension
pyndri_ext = Extension(
'pyndri_ext',
sources=['src/pyndri.cpp'],
libraries=['indri', 'z', 'pthread', 'm'],
library_dirs=list(
filter(len, os.environ.get('LD_LIBRARY_PATH', '').split(':'))),
define_macros=[('_GLIBCXX_USE_CXX11_ABI', '0'),
('P_NEEDS_GNU_CXX_NAMESPACE', '1'),
('_FILE_OFFSET_BITS', '64')],
undef_macros=['NDEBUG'])
setup(name='pyndri',
version='0.4',
description='pyndri is a Python interface to the Indri search engine',
author='Christophe Van Gysel',
author_email='[email protected]',
ext_modules=[pyndri_ext],
packages=['pyndri'],
package_dir={'pyndri': 'py'},
scripts=['bin/PyndriQuery', 'bin/PyndriStatistics'],
python_requires='>=3',
url='https://github.com/cvangysel/pyndri',
download_url='https://github.com/cvangysel/pyndri/tarball/0.4',
keywords=['indri', 'language models', 'retrieval', 'indexing'],
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: C++',
'Intended Audience :: Science/Research',
'Operating System :: POSIX :: Linux',
'Topic :: Text Processing :: Indexing',
])