-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
57 lines (56 loc) · 2.07 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
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
import numpy
try:
# try with fopenmp
ext = Extension("pysapc.sparseAP_cy", ['pysapc/sparseAP_cy.pyx'],
extra_compile_args=['-fopenmp'],
extra_link_args=['-fopenmp'],
include_dirs=[numpy.get_include()],
)
setup(
name="pysapc",
version="1.2.0",
description="Sparse Affinity Propagation Clustering",
author="Huojun Cao",
author_email="[email protected]",
url="https://github.com/bioinfocao/pysapc",
license="BSD 3 clause",
packages=["pysapc","pysapc.tests"],
#packages = find_packages(),
package_data = {
# If any package contains *.txt or *.rst files, include them:
'': ['*.txt', '*.rst'],
},
include_package_data=True,
install_requires=["numpy","scipy","pandas","cython"],
cmdclass = {"build_ext": build_ext},
ext_modules = [ext],
setup_requires=['wheel']
)
except:
# if fopenmp is not installed
ext = Extension("pysapc.sparseAP_cy", ['pysapc/sparseAP_cy.pyx'],
include_dirs=[numpy.get_include()],
)
setup(
name="pysapc",
version="1.2.0",
description="Sparse Affinity Propagation Clustering",
author="Huojun Cao",
author_email="[email protected]",
url="https://github.com/bioinfocao/pysapc",
license="BSD 3 clause",
packages=["pysapc","pysapc.tests"],
#packages = find_packages(),
package_data = {
# If any package contains *.txt or *.rst files, include them:
'': ['*.txt', '*.rst'],
},
include_package_data=True,
install_requires=["numpy","scipy","pandas","cython"],
cmdclass = {"build_ext": build_ext},
ext_modules = [ext],
setup_requires=['wheel']
)