-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
83 lines (77 loc) · 3.53 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
import setuptools
import numpy
common_compile_args = [
"-std=c++17",
"-std=c++17",
"-O3",
"-fopenmp",
"-fopenmp-simd",
"-funroll-loops",
"-g",
"-ffast-math"]
common_link_args = ["-fopenmp"]
common_include_dirs = ["src/", "copcor/src/", "copcor/src/copula/", numpy.get_include()]
common_libraries = []
copula_entroy = setuptools.Extension("pycopcor.copula._entropy",
sources=[
"src/copula/entropy.cpp",
"copcor/src/copula/entropy.c",
],
include_dirs=common_include_dirs,
extra_compile_args=common_compile_args,
extra_link_args=common_link_args,
libraries=common_libraries,
)
copula_wolff = setuptools.Extension("pycopcor.copula._wolff",
sources=[
"src/copula/wolff.cpp",
"copcor/src/copula/wolff.c",
],
include_dirs=common_include_dirs,
extra_compile_args=common_compile_args,
extra_link_args=common_link_args,
libraries=common_libraries,
)
utils = setuptools.Extension("pycopcor._utils",
sources=[
"src/utils/utils.cpp",
"copcor/src/utils.c",
],
include_dirs=common_include_dirs,
extra_compile_args=common_compile_args,
extra_link_args=common_link_args,
libraries=common_libraries,
)
setuptools.setup(name='pycopcor',
version='1.0.0',
description='A framework for non-linear dependency or correlation analysis using copulas',
packages=[
"pycopcor",
"pycopcor.copula",
"pycopcor.utils",
],
package_dir={
"pycopcor": "src",
},
ext_modules=[
copula_entroy,
copula_wolff,
utils
],
install_requires=["numpy", "scipy"],
author="Andreas Gocht-Zech",
url="https://github.com/AndreasGocht/pycopcor",
readme = "README.md",
classifiers = [
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
"Operating System :: POSIX",
"Operating System :: Unix",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
)