-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathsetup.py
87 lines (79 loc) · 2.55 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
84
85
86
#!/usr/bin/env python
import os
import setuptools
class NumpyImport:
def __repr__(self):
import numpy as np
return np.get_include()
__fspath__ = __repr__
def read(fname):
with open(os.path.join(os.path.dirname(__file__), fname), 'rt') as f:
return f.read()
# NOTE: If skeletontricks.cpp does not exist, you must run
# cython -3 --cplus ./ext/skeletontricks/skeletontricks.pyx
setuptools.setup(
name="kimimaro",
version="4.1.2",
setup_requires=["numpy", "cython"],
install_requires=[
"click",
"connected-components-3d>=3.16.0",
"cloud-volume>=0.57.6",
"dijkstra3d>=1.15.0",
"fill-voids>=2.0.0",
"edt>=2.1.0",
"fastremap>=1.10.2",
"networkx",
"numpy>=1.16.1",
"pathos",
"pytest",
"scipy>=1.1.0",
"xs3d>=1.2.0,<2",
],
extras_require={
'tif': [ 'tifffile' ],
},
python_requires=">=3.8.0,<4.0.0",
ext_modules=[
setuptools.Extension(
'kimimaro.skeletontricks',
sources=[ './ext/skeletontricks/skeletontricks.pyx' ],
language='c++',
include_dirs=[ str(NumpyImport()) ],
extra_compile_args=[
'-std=c++11', '-O3', '-ffast-math'
]
),
],
author="William Silversmith, Alex Bae, Forrest Collman, Peter Li",
author_email="[email protected]",
packages=setuptools.find_packages(),
description="Skeletonize densely labeled image volumes.",
long_description=read('README.md'),
long_description_content_type="text/markdown",
license = "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
keywords = "volumetric-data numpy teasar skeletonization centerline medial-axis-transform centerline-extraction computer-vision-alogithms connectomics image-processing biomedical-image-processing voxel",
url = "https://github.com/seung-lab/kimimaro/",
classifiers=[
"Intended Audience :: Developers",
"Development Status :: 4 - Beta",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
"Intended Audience :: Science/Research",
"Operating System :: POSIX",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows :: Windows 10",
],
entry_points={
"console_scripts": [
"kimimaro=kimimaro_cli:main"
],
},
)