-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
77 lines (54 loc) · 2.25 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
import distutils.command.build
import os
import setuptools
here = os.path.abspath(os.path.dirname(__file__))
long_description = open(os.path.join(here, "README.md")).read()
mpf_extension = setuptools.Extension(
name="erwin.mt_map.mpf", sources=["src/erwin/mt_map/mpf.pyx"])
class build(distutils.command.build.build):
def finalize_options(self):
import Cython.Build
super().finalize_options()
self.distribution.ext_modules = Cython.Build.cythonize(
[mpf_extension], language_level=3)
setuptools.setup(
name="erwin",
version="1.2.0",
description="Toolbox to generate quantitative maps from MRI images",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/lamyj/erwin",
author="J. Lamy, M. Mondino, P. Loureiro de Sousa",
maintainer="Julien Lamy",
maintainer_email="lamy@unistra.fr",
license="MIT",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Healthcare Industry",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: Image Processing",
"Topic :: Scientific/Engineering :: Medical Science Apps.",
"Topic :: Scientific/Engineering :: Physics",
],
keywords = [
"MRI", "quantitative",
"field mapping", "B0", "B1",
"CBF", "cerebral blood flow", "ASL", "arterial spin labeling", "pASL",
"diffusion", "DTI", "diffusion tensor", "spherical harmonics",
"MT", "magnetization transfer",
"relaxometry", "T1", "VFA", "T2", "bSSFP",
],
packages=setuptools.find_packages("src"),
package_dir={"": "src"},
ext_modules=[mpf_extension],
python_requires=">=3.7",
setup_requires=["cython"],
cmdclass={"build": build},
install_requires=[
"cython", "docutils", "doit", "meg", "nibabel", "numpy",
"pydicom", "scipy", "sphinx", "spire-pipeline>=1.1.1"],
entry_points={ "console_scripts": [ "erwin=erwin.__main__:main"] },
)