-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
68 lines (62 loc) · 1.77 KB
/
Copy pathsetup.py
File metadata and controls
68 lines (62 loc) · 1.77 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
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
import os
import setuptools
import sys
from pybind11.setup_helpers import Pybind11Extension, build_ext
def read(fname):
with open(os.path.join(os.path.dirname(__file__), fname), 'rt') as f:
return f.read()
extra_compile_args = []
if sys.platform == 'win32':
extra_compile_args += [
'/std:c++20', '/O2'
]
else:
extra_compile_args += [
'-std=c++20', '-O3'
]
setuptools.setup(
name="vqsort",
version="0.0.1",
setup_requires=["numpy","pybind11"],
install_requires=[ 'numpy', ],
extras_require={},
python_requires=">=3.9.0",
author="William Silversmith",
author_email="ws9@princeton.edu",
packages=setuptools.find_packages(),
package_data={
'vqsort': [
'LICENSE',
],
},
ext_modules=[
Pybind11Extension(
"vqsort_bind",
["vqsort/vqsort_bind.cpp"],
extra_compile_args=extra_compile_args,
language="c++",
),
],
description="Morphological image processing for 3D multi-label images.",
long_description=read('README.md'),
long_description_content_type="text/markdown",
license = "BSD-3",
keywords = "sorting sort vqsort",
url = "https://github.com/seung-lab/fastmorph/",
classifiers=[
"Intended Audience :: Developers",
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Intended Audience :: Science/Research",
"Operating System :: POSIX",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows :: Windows 10",
],
)