-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
60 lines (52 loc) · 2.52 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
from Cython.Build import cythonize
import os
from setuptools import find_packages, setup, Extension
import platform
if platform.system() == 'Windows':
PREFIX=os.path.join(os.getenv("CONDA_PREFIX"), 'Library')
extra_obj=os.path.join(PREFIX, 'lib', 'igraph.lib')
freud='freud-analysis'
else:
PREFIX=os.getenv("CONDA_PREFIX")
#PREFIX="/Users/alaink/miniconda3/envs/SGTE-dev/"
extra_obj="-ligraph"
freud='freud'
include_dirs = [os.path.join(PREFIX, 'include', 'igraph'),
os.path.join(PREFIX, 'include', 'eigen3'),]
setup(
name='StructuralGT',
packages = find_packages(),
setup_requires = ["cython"],
ext_modules=cythonize([
Extension(name="StructuralGT._boundary_betweenness_cast",
sources=["_boundary_betweenness_cast.pyx"],
include_dirs=include_dirs,
language="c++",
extra_objects=[extra_obj]
),
Extension(name="StructuralGT._vertex_boundary_betweenness_cast",
sources=["_vertex_boundary_betweenness_cast.pyx"],
include_dirs=include_dirs,
language="c++",
extra_objects=[extra_obj]
),
Extension(name="StructuralGT._random_boundary_betweenness_cast",
sources=["_random_boundary_betweenness_cast.pyx"],
include_dirs=include_dirs,
language="c++",
extra_objects=[extra_obj]
),
Extension(name="StructuralGT._average_nodal_connectivity_cast",
sources=["_average_nodal_connectivity_cast.pyx"],
include_dirs=include_dirs,
language="c++",
extra_objects=[extra_obj]
),
Extension(name="StructuralGT.convert",
sources=["convert.pyx"]),
]
),
zip_safe=False,
package_data={'StructuralGT':['pytest/data/*/*',]}#'_bounded_betweenness_cast.pyx'],}
#'StructuralGT._boundndess_betweenness_cast':['_bounded_betweenneess_cast.pyx']},
)