-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·28 lines (25 loc) · 1.15 KB
/
setup.py
File metadata and controls
executable file
·28 lines (25 loc) · 1.15 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
from setuptools import setup, find_packages, Extension
import numpy as np
from Cython.Build import cythonize
if __name__ == "__main__":
extensions = cythonize(
Extension(
name = "iterLS.cython_wrapper",
sources = ["iterLS/cython_wrapper/cython_wrapper.pyx", 'iterLS/c_functions/label_spreading.c', "iterLS/c_functions/node_structure.c"],
include_dirs = ["iterLS", "iterLS/cython_wrapper/", "iterLS/c_functions/"],
extra_link_args = ["-lm"],
language = 'c'
),
compiler_directives={'language_level': 3},
annotate=True)
setup(
use_scm_version={"version_scheme": "no-guess-dev"},
name='iterLS',
version='0.1.0',
include_dirs = [np.get_include(), "iterLS", "iterLS/cython_wrapper", "iterLS/c_functions"],
package_data={"iterLS": ["*.pyx", "*.c", "*.h", "*.py"]},
setup_requires=['Cython', 'numpy', 'scipy', 'matplotlib', 'scikit-learn'],
packages = ['iterLS'],
install_requires = ['numpy', 'scipy', 'Cython', 'matplotlib', 'scikit-learn'],
ext_modules=extensions
)