forked from spinalcordtoolbox/spinalcordtoolbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
72 lines (67 loc) · 2.1 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
# -*- coding: utf-8 -*-
import sys, os
from setuptools import setup, find_packages
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
with open(path.join(here, 'version.txt')) as f:
version = f.read().strip()
setup(
name='spinalcordtoolbox',
version=version,
description='Library of analysis tools for MRI of the spinal cord',
long_description=long_description,
url='http://www.neuro.polymtl.ca/home',
author='NeuroPoly Lab, Polytechnique Montreal',
author_email='[email protected]',
license='MIT',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Healthcare Industry',
'Intended Audience :: Education',
'Topic :: Scientific/Engineering :: Medical Science Apps.',
'License :: OSI Approved :: MIT License',
'Operating System :: Unix',
'Operating System :: MacOS',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
],
keywords='Magnetic Resonance Imaging MRI spinal cord analysis template',
packages=[
"spinalcordtoolbox",
],
#package_data={},
data_files=[
# <hack>
("sct_scripts", [ os.path.join("scripts", x) for x in os.listdir("scripts") if x.endswith(".py") ]),
# </hack>
],
include_package_data=True,
extras_require={
'docs': [
'sphinx',
'sphinxcontrib-programoutput',
'sphinx_rtd_theme',
],
'mpi': [
'mpich==3.2',
'mpi4py==3.0.0',
],
# 'test': [
# "pytest-runner",
# "pytest",
# ],
},
entry_points=dict(
console_scripts=[
# <hack>
] + ['{}=spinalcordtoolbox.compat.launcher:main'.format(os.path.splitext(x)[0]) for x in os.listdir("scripts") if x.endswith(".py")] + [
# </hack>
# TODO add proper command-line entry points from refactored code
#'sct_deepseg_gm=spinalcordtoolbox.deepseg_gm.__main__:main',
],
),
)