-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup_deb.py
80 lines (71 loc) · 3.07 KB
/
setup_deb.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
79
#!/usr/bin/env python
"""Connectome Mapper and CMTKlib
"""
import os
import sys
from glob import glob
if os.path.exists('MANIFEST'): os.remove('MANIFEST')
packages=["cmp","cmp.stages",
"cmp.stages.preprocessing",
"cmp.stages.segmentation",
"cmp.stages.parcellation",
"cmp.stages.registration",
"cmp.stages.diffusion",
"cmp.stages.connectome",
"cmp.pipelines",
"cmp.pipelines.diffusion",
"cmtklib"]
package_data = {'cmp':
['pipelines/diffusion/*.png'
],
'cmtklib':
['data/parcellation/lausanne2008/*/*.*',
'data/parcellation/nativefreesurfer/*/*.*',
'data/colortable_and_gcs/*.*',
'data/colortable_and_gcs/my_atlas_gcs/*.*',
'data/diffusion/odf_directions/*.*',
'data/diffusion/gradient_tables/*.*',
]}
################################################################################
# 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 cmp.info import __version__
setup(name='cmp',
version=__version__,
description='Connectome Mapper',
long_description="""Connectome Mapper implements a full diffusion MRI processing pipeline, from raw Diffusion/T1/T2 """ + \
"""data to multi-resolution connection matrices. It also offers support for resting state fMRI data processing and multi-resolution functional connection matrices creation. """ + \
"""The Connectome Mapper is part of the Connectome Mapping Toolkit.""",
author= 'CHUV-EPFL',
author_email='[email protected]',
url='http://www.connectomics.org/',
scripts = ['scripts/connectomemapper','scripts/showmatrix_gpickle'],
license='Modified BSD License',
packages = packages,
classifiers = [c.strip() for c in """\
Development Status :: 4 - 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 = 'EPFL LTS5 Diffusion Group',
maintainer_email = '[email protected]',
package_data = package_data,
requires=["numpy (>=1.2)", "nibabel (>=1.1.0)"],
**extra_args
)
if __name__ == "__main__":
main(**extra_setuptools_args)