-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
64 lines (55 loc) · 2.5 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
#!/usr/bin/env python
"""PyMIALSRTK
"""
import os
import sys
from glob import glob
if os.path.exists('MANIFEST'): os.remove('MANIFEST')
packages=["pymialsrtk",
"pymialsrtk.interfaces",
"pymialsrtk.pipelines"]
package_data = {}
# package_data = {'cmtklib':
# ['data/parcellation/lausanne2008/*/*.*']
# }
################################################################################
# For some commands, use setuptools
if len(set(('develop', 'bdist_egg', 'bdist_rpm', 'bdist', 'bdist_dumb',
'bdist_wininst', 'install_egg_info', 'egg_info', 'easy_install',
)).intersection(sys.argv)) > 0:
from setup_egg import extra_setuptools_args
# extra_setuptools_args can be defined from the line above, but it can
# also be defined here because setup.py has been exec'ed from
# setup_egg.py.
if not 'extra_setuptools_args' in globals():
extra_setuptools_args = dict()
def main(**extra_args):
from distutils.core import setup
from pymialsrtk.info import __version__
setup(name='pymialsrtk',
version=__version__,
description='PyMIALSRTK: Nipype pipelines for the MIAL Super Resolution Toolkit ',
long_description=""" PyMIALSRTK interfaces with the MIALSRTK C++ tools and implements a full processing pipeline using the NiPype dataflow library, from motion-corrupted anisotropic multi-slice MRI scans to a motion-free isotropic high-resolution image. """,
author= 'Sebastien Tourbier',
author_email='[email protected]',
url='http://www.connectomics.org/',
#scripts = ['scripts/superresolution'],
license='Modified BSD License',
packages = packages,
classifiers = [c.strip() for c in """\
Development Status :: 1 - Beta
Intended Audience :: Developers
Intended Audience :: Science/Research
Operating System :: OS Independent
Programming Language :: Python
Topic :: Scientific/Engineering
Topic :: Software Development
""".splitlines() if len(c.split()) > 0],
maintainer = 'Medical Image Analysis Laboratory, University Hospital of Lausanne and the MIALSRTK developers',
maintainer_email = '[email protected]',
package_data = package_data,
requires=["numpy (>=1.2)", "nibabel (>=2.0.0)", "pybids (==0.8)"],
**extra_args
)
if __name__ == "__main__":
main(**extra_setuptools_args)