-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
65 lines (54 loc) · 1.56 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import setuptools
from setuptools import setup
from distutils.extension import Extension
from Cython.Build import cythonize
import sys
from os import path
import platform
if platform.system() == "Windows":
compile_args = []
else:
compile_args = ["-std=c++11"]
cereal_path = path.join("subseq", "cpp_sources", "_deps", "cereal-src", "include")
module = Extension(
"*",
[
"subseq/*.pyx",
"subseq/cpp_sources/Bitset.cpp",
"subseq/cpp_sources/CSubseq.cpp",
"subseq/cpp_sources/FmIndex.cpp",
"subseq/cpp_sources/FrequencyArray.cpp",
"subseq/cpp_sources/WaveletTree.cpp",
"subseq/cpp_sources/SubqueryGenerator.cpp",
],
include_dirs=[cereal_path],
language="c++",
extra_compile_args=compile_args,
extra_link_args=compile_args,
)
version = "1.0.4"
author = "Bluesheeptoken"
author_email = "louis.fruleux1@gmail.com"
description = "Succinct BWT-Based SequencePrediction"
license = "MIT"
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, "README.md")) as f:
long_description = f.read()
url = "https://github.com/bluesheeptoken/subseq"
setup(
name="subseq",
ext_modules=cythonize(
module,
annotate=False,
compiler_directives={"language_level": sys.version_info[0]},
),
version=version,
author=author,
author_email=author_email,
description=description,
license=license,
long_description=long_description,
long_description_content_type="text/markdown",
url=url,
python_requires=">=3.7, <4"
)