-
Notifications
You must be signed in to change notification settings - Fork 13
/
setup.py
73 lines (61 loc) · 1.94 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
import os
import setuptools
import sys
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()
extra_compile_args = [
'-std=c++11', '-O3', '-ffast-math',
]
if sys.platform == 'darwin':
extra_compile_args += [ '-stdlib=libc++', '-mmacosx-version-min=10.9' ]
setuptools.setup(
name="dijkstra3d",
version="1.15.1",
python_requires=">=3.8,<4.0",
setup_requires=['numpy','cython'],
ext_modules=[
setuptools.Extension(
'dijkstra3d',
sources=[ 'dijkstra3d.pyx' ],
language='c++',
include_dirs=[ str(NumpyImport()) ],
extra_compile_args=extra_compile_args,
)
],
url="https://github.com/seung-lab/dijkstra3d/",
author="William Silversmith",
author_email="ws9@princeton.edu",
packages=setuptools.find_packages(),
package_data={
'dijkstra3d': [
'LICENSE',
],
},
description="Implementation of Dijkstra's Shortest Path algorithm on 3D images.",
long_description=read('README.md'),
long_description_content_type="text/markdown",
license = "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
classifiers=[
"Intended Audience :: Developers",
"Development Status :: 5 - Production/Stable",
"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",
]
)