-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
63 lines (61 loc) · 1.98 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
from setuptools import setup
from setuptools.extension import Extension
from Cython.Build import cythonize
import numpy as np
print(np.get_include())
setup(
name="funlib.segment",
version="0.1",
description="Tools to segment graphs and volumes.",
url="https://github.com/funkelab/funlib.segment",
author="Jan Funke",
author_email="funkej@janelia.hhmi.org",
license="MIT",
packages=[
"funlib.segment",
"funlib.segment.graphs",
"funlib.segment.graphs.impl",
"funlib.segment.arrays",
"funlib.segment.arrays.impl",
],
ext_modules=cythonize(
[
Extension(
"funlib.segment.arrays.impl.replace_values_inplace",
sources=["funlib/segment/arrays/impl/replace_values_inplace.pyx"],
extra_compile_args=["-O3"],
include_dirs=[np.get_include()],
language="c++",
),
Extension(
"funlib.segment.arrays.impl.find_components",
sources=[
"funlib/segment/arrays/impl/find_components.pyx",
"funlib/segment/arrays/impl/find_components_impl.cpp",
],
extra_compile_args=["-O3", "-std=c++11"],
include_dirs=[np.get_include()],
language="c++",
),
Extension(
"funlib.segment.graphs.impl.connected_components",
sources=[
"funlib/segment/graphs/impl/connected_components.pyx",
"funlib/segment/graphs/impl/connected_components_impl.cpp",
],
extra_compile_args=["-O3", "-std=c++11"],
include_dirs=[np.get_include()],
language="c++",
),
]
),
install_requires=[
"funlib.persistence>=0.1",
"funlib.geometry>=0.2",
"daisy>=1.0",
"cython",
"numpy",
"scikit-image",
"zarr",
],
)