-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
31 lines (29 loc) · 1.07 KB
/
Copy pathsetup.py
File metadata and controls
31 lines (29 loc) · 1.07 KB
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
from setuptools import setup, Extension, find_packages
import os
from Cython.Build import cythonize
PREFIX=os.getenv("CONDA_PREFIX")
include_dirs = [os.path.join(PREFIX, 'include', 'igraph'),
os.path.join(PREFIX, 'include', 'eigen3'),
os.path.join(PREFIX, 'include', 'boost'),
]
setup(
name="MCMC",
ext_modules=cythonize([Extension(name="MCMC._graph_cast",
sources=["_graph_cast.pyx"],
include_dirs=include_dirs,
language="c++",
extra_objects=["-ligraph",],
extra_compile_args=["-Wl,-rpath,/Users/alaink/miniconda3/envs/MCMC/lib "]),]),
packages = find_packages(),
install_requires=[
'numpy',
'Cython',
'python-igraph',
'igraph',
'eigen',
'cmake',
'networkx',
'scipy',
],
setup_requires = ["cython"],
)