-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
56 lines (52 loc) · 1.26 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
from distutils.core import setup, Extension
import os
from Cython.Build import cythonize
import numpy as np
PACKAGE_DIR = "rPTMDetermine"
c_rptmdetermine = Extension(
"crPTMDetermine",
sources=[
os.path.join(PACKAGE_DIR, "converters.cpp"),
os.path.join(PACKAGE_DIR, "annotate.cpp"),
os.path.join(PACKAGE_DIR, "crPTMDetermine.cpp"),
],
extra_compile_args=['-std=c++11']
)
setup(
name="rPTMDetermine",
version="1.0.0",
packages=[
"rPTMDetermine",
"rPTMDetermine.readers",
],
ext_modules=cythonize(
[
c_rptmdetermine,
os.path.join(PACKAGE_DIR, "binomial.pyx"),
os.path.join(PACKAGE_DIR, "ionscore.pyx"),
],
include_path=[
PACKAGE_DIR
],
compiler_directives={
"language_level": "3",
}
),
include_dirs=[np.get_include()],
package_data={
"rPTMDetermine": [
"binomial.pxd",
"EnzymeRules.json",
],
"rPTMDetermine.readers": [
"ptmlist.txt",
"unimod.xml",
]
},
scripts=[
"bin/rptmdetermine_validate.py",
"bin/rptmdetermine_retrieve.py"
],
include_package_data=True,
language="c++"
)