-
Notifications
You must be signed in to change notification settings - Fork 21
/
setup.py
140 lines (137 loc) · 7.42 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
#! /usr/bin/env python
import os
from setuptools import (setup, Extension)
# Deduce the version from the __init__.py file:
version = None
with open(os.path.join(os.path.dirname(__file__), 'neuropythy', '__init__.py'), 'r') as fid:
for line in (line.strip() for line in fid):
if line.startswith('__version__'):
version = line.split('=')[1].strip().strip('\'')
break
if version is None: raise ValueError('No version found in neuropythy/__init__.py!')
setup(
name='neuropythy',
version=version,
description='Toolbox for flexible cortical mesh analysis and registration',
keywords='neuroscience mesh cortex registration',
author='Noah C. Benson',
author_email='[email protected]',
maintainer_email='[email protected]',
long_description='''
See the README.md file at the github repository for this package:
https://github.com/noahbenson/neuropythy
''',
url='https://github.com/noahbenson/neuropythy',
download_url='https://github.com/noahbenson/neuropythy',
license='AGPL',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)',
# Removing support for Python 2, since it's well past EOL.
#'Programming Language :: Python :: 2',
#'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'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',
'Topic :: Software Development',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Scientific/Engineering :: Medical Science Apps.',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Operating System :: Unix',
'Operating System :: MacOS'],
packages=['neuropythy',
'neuropythy.util',
'neuropythy.math',
'neuropythy.java',
'neuropythy.io',
'neuropythy.geometry',
'neuropythy.optimize',
'neuropythy.mri',
'neuropythy.freesurfer',
'neuropythy.hcp',
'neuropythy.registration',
'neuropythy.vision',
'neuropythy.graphics',
'neuropythy.datasets',
'neuropythy.plans',
'neuropythy.commands',
'neuropythy.test'],
# not part of library; just included as an example of how this would work
#ext_modules=[Extension('neuropythy.c_label', sources=['src/c_label.c'],
# include_dirs=[np.get_include()])],
include_package_data=True,
package_data={
'': ['LICENSE.txt',
'neuropythy/lib/nben/target/nben-standalone.jar',
'neuropythy/lib/models/v123.fmm.gz',
'neuropythy/lib/models/lh.benson17.fmm.gz',
'neuropythy/lib/models/rh.benson17.fmm.gz',
'neuropythy/lib/projections/lh.occipital_pole.mp.json',
'neuropythy/lib/projections/rh.occipital_pole.mp.json',
'neuropythy/lib/data/fsaverage/surf/lh.benson14_angle.v4_0.mgz',
'neuropythy/lib/data/fsaverage/surf/lh.benson14_sigma.v4_0.mgz',
'neuropythy/lib/data/fsaverage/surf/lh.benson14_varea.v4_0.mgz',
'neuropythy/lib/data/fsaverage/surf/lh.benson14_eccen.v4_0.mgz',
'neuropythy/lib/data/fsaverage/surf/rh.benson14_retinotopy.v4_0.sphere.reg',
'neuropythy/lib/data/fsaverage/surf/lh.wang15_mplbl.v1_0.mgz',
'neuropythy/lib/data/fsaverage/surf/rh.benson14_varea.v4_0.mgz',
'neuropythy/lib/data/fsaverage/surf/rh.benson14_eccen.v4_0.mgz',
'neuropythy/lib/data/fsaverage/surf/rh.wang15_mplbl.v1_0.mgz',
'neuropythy/lib/data/fsaverage/surf/rh.benson14_angle.v4_0.mgz',
'neuropythy/lib/data/fsaverage/surf/rh.benson14_sigma.v4_0.mgz',
'neuropythy/lib/data/fsaverage/surf/lh.benson14_retinotopy.v4_0.sphere.reg',
'neuropythy/lib/data/fsaverage/surf/lh.rosenke18_vcatlas.v1_0.mgz',
'neuropythy/lib/data/fsaverage/surf/rh.rosenke18_vcatlas.v1_0.mgz',
'neuropythy/lib/data/fsaverage/surf/lh.glasser16_atlas.v1_0.mgz',
'neuropythy/lib/data/fsaverage/surf/rh.glasser16_atlas.v1_0.mgz',
'neuropythy/lib/data/fsaverage_sym/surf/lh.benson14_angle.v2_0.mgz',
'neuropythy/lib/data/fsaverage_sym/surf/lh.benson14_angle.v2_1.mgz',
'neuropythy/lib/data/fsaverage_sym/surf/lh.benson14_eccen.v3_0.mgz',
'neuropythy/lib/data/fsaverage_sym/surf/lh.benson14_enorm.v1_0.mgz',
'neuropythy/lib/data/fsaverage_sym/surf/lh.benson14_angle.v2_5.mgz',
'neuropythy/lib/data/fsaverage_sym/surf/lh.benson14_varea.v3_0.mgz',
'neuropythy/lib/data/fsaverage_sym/surf/lh.benson14_eccen.v1_0.mgz',
'neuropythy/lib/data/fsaverage_sym/surf/lh.benson14_angle.v3_0.mgz',
'neuropythy/lib/data/fsaverage_sym/surf/lh.benson14_eccen.v2_5.mgz',
'neuropythy/lib/data/fsaverage_sym/surf/lh.benson14_sigma.v3_0.mgz',
'neuropythy/lib/data/fsaverage_sym/surf/lh.benson14_varea.v2_5.mgz',
'neuropythy/lib/data/fsaverage_sym/surf/lh.benson14_angle.v1_0.mgz',
'neuropythy/lib/data/fsaverage_sym/surf/lh.benson14_varea.v2_0.mgz',
'neuropythy/lib/data/fsaverage_sym/surf/lh.benson14_varea.v2_1.mgz',
'neuropythy/lib/data/fsaverage_sym/surf/lh.benson14_eccen.v2_0.mgz',
'neuropythy/lib/data/fsaverage_sym/surf/lh.benson14_eccen.v2_1.mgz',
'neuropythy/lib/data/fsaverage_sym/surf/lh.benson14_varea.v1.0.mgz',
'neuropythy/lib/data/fsaverage_sym/surf/lh.benson14_anorm.v1_0.mgz',
'neuropythy/lib/data/fsaverage_sym/surf/lh.benson14_retinotopy.v3_0.sphere.reg',
'neuropythy/lib/data/fs_LR/lh.atlasroi.32k_fs_LR.shape.gii',
'neuropythy/lib/data/fs_LR/rh.atlasroi.32k_fs_LR.shape.gii',
'neuropythy/lib/data/fs_LR/lh.atlasroi.59k_fs_LR.shape.gii',
'neuropythy/lib/data/fs_LR/rh.atlasroi.59k_fs_LR.shape.gii',
'neuropythy/lib/data/fs_LR/lh.atlasroi.164k_fs_LR.shape.gii',
'neuropythy/lib/data/fs_LR/rh.atlasroi.164k_fs_LR.shape.gii',
'neuropythy/lib/data/hcp_lines_osftree.json.gz']},
install_requires=['numpy>=1.13',
'scipy>=1.1',
'six >= 1.13',
'nibabel>=2.0',
'pyrsistent>=0.11',
'pint>=0.7',
'pimms>=0.3.24',
'py4j>=0.10',
'h5py>=2.8.0',
's3fs>=0.1.5'],
extras_require={
'graphics2D': ['matplotlib>=1.5.3'],
'graphics3D': ['matplotlib>=1.5.3', 'ipyvolume>=0.5.1'],
'torch': ['torch>=1.6.0'],
'all': ['matplotlib>=1.5.3', 'ipyvolume>=0.5.1', 'torch>=1.6.0']})