-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
26 lines (21 loc) · 901 Bytes
/
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
from setuptools import setup, Extension
from Cython.Build import cythonize
VERSION = '0.9.81'
if __name__ == '__main__':
src_files = ['src/suffix_array.pyx']
extensions = [Extension("suffix_array",
sources=src_files,
extra_compile_args=['-std=c++17',
'-g',
'-O2'])]
description = "Fast Suffix Array for Python"
setup(name='suffix_array',
version=VERSION,
author='Justin Van Winkle',
author_email='justin.vanwinkle@gmail.com',
url='https://github.com/justinvanwinkle/suffix_array',
license="BSD",
tests_require=["pytest"],
setup_requires=["cython", "pytest-runner"],
description=description,
ext_modules=cythonize(extensions, nthreads=4))