forked from msproteomicstools/msproteomicstools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup_travis.py
32 lines (27 loc) · 1.08 KB
/
setup_travis.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
#!/usr/bin/env python
import os
import numpy
from setuptools import setup
from Cython.Build import cythonize
import sys
with_cython = False
if "--with_cython" in sys.argv:
with_cython = True
sys.argv.remove("--with_cython")
# only need this to copy over the shared libraries
ext_modules = []
if with_cython:
ext_modules = [
cythonize("msproteomicstoolslib/cython/_optimized.pyx", language="c++")[0],
cythonize("msproteomicstoolslib/cython/LightTransformationData.pyx", language="c++")[0],
cythonize("msproteomicstoolslib/cython/_linear_interpol.pyx", language="c++")[0],
cythonize("msproteomicstoolslib/cython/PrecursorWrapper.pyx", language="c++")[0],
cythonize("msproteomicstoolslib/cython/PeakgroupWrapper.pyx", language="c++")[0],
cythonize("msproteomicstoolslib/cython/PrecursorGroup.pyx", language="c++")[0],
cythonize("msproteomicstoolslib/algorithms/alignment/DataCacher.pyx", language="c++")[0]
]
setup(name='msproteomicstools',
# Package and install info
ext_modules=ext_modules,
include_dirs=[numpy.get_include()]
)