-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathsetup.py
78 lines (67 loc) · 2.59 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
# -*- coding: utf-8 -*-
import os
from setuptools import Extension, find_packages, setup
__version__ = "" # placeholder for linters
exec(open("pystackreg/version.py").read())
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
class get_numpy_include(object):
def __str__(self):
import numpy
return numpy.get_include()
if __name__ == "__main__":
readme = read("README.rst")
change = read("CHANGELOG.rst")
setup(
name="pystackreg",
description=(
"Image registration tool (python implementation of the ImageJ/FIJI "
"Plugin TurboReg/StackReg)"
),
long_description="\n\n".join([readme, change]),
long_description_content_type="text/x-rst",
version=__version__,
author=(
"Gregor Lichtner (python/C++ port);"
"TurboReg Author: Philippe Thévenaz, Biomedical Imaging Group,"
"Swiss Federal Institute of Technology Lausanne"
),
url="https://github.com/glichtner/pystackreg",
packages=find_packages("."),
ext_modules=[
Extension(
"pystackreg.turboreg",
[
"src/pymain.cpp",
"src/TurboReg.cpp",
"src/TurboRegMask.cpp",
"src/TurboRegImage.cpp",
"src/TurboRegTransform.cpp",
"src/TurboRegPointHandler.cpp",
],
extra_compile_args=["-std=c++11"],
include_dirs=["inc/", get_numpy_include()],
)
],
setup_requires=["numpy"],
install_requires=["numpy", "tqdm"],
classifiers=[
# complete list: http://pypi.python.org/pypi?%3Aaction=list_classifiers
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"License :: Free To Use But Restricted",
"Operating System :: Microsoft :: Windows",
"Operating System :: Unix",
"Operating System :: POSIX",
"Programming Language :: C++",
"Programming Language :: Python",
"Programming Language :: Python :: 3.7",
"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 :: Image Processing",
"Topic :: Utilities",
],
)