forked from wasserth/TotalSegmentator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
58 lines (55 loc) · 2.22 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
import sys
from setuptools import setup, find_packages
if sys.version_info < (3, 10):
# Specify the fixed version for Python < 3.10. Because using the latest
# requests would also install the latest urllib3 which does not work
# properly on python < 3.10.
requests_version = '==2.27.1' #requires: urllib3>=1.21.1,<1.27
# 2.27.1 somehow not available in dockerfile
else:
requests_version = '' # No fixed version for Python 3.10 and higher
setup(name='TotalSegmentator',
version='2.0.5',
description='Robust segmentation of 104 classes in CT images.',
long_description="See Readme.md on github for more details.",
url='https://github.com/wasserth/TotalSegmentator',
author='Jakob Wasserthal',
author_email='jakob.wasserthal@usb.ch',
python_requires='>=3.9',
license='Apache 2.0',
packages=find_packages(),
install_requires=[
'torch>=1.10.2',
'numpy',
'psutil',
'SimpleITK',
'nibabel>=2.3.0',
'tqdm>=4.45.0',
'p_tqdm',
'xvfbwrapper',
'fury',
'nnunetv2==2.1',
f'requests{requests_version}',
'rt_utils',
'dicom2nifti'
],
zip_safe=False,
classifiers=[
'Intended Audience :: Science/Research',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Operating System :: Unix',
'Operating System :: MacOS'
],
entry_points={
'console_scripts': [
'TotalSegmentator=totalsegmentator.bin.TotalSegmentator:main',
'totalseg_combine_masks=totalsegmentator.bin.totalseg_combine_masks:main',
'crop_to_body=totalsegmentator.bin.crop_to_body:main',
'totalseg_import_weights=totalsegmentator.bin.totalseg_import_weights:main',
'totalseg_download_weights=totalsegmentator.bin.totalseg_download_weights:main',
'totalseg_setup_manually=totalsegmentator.bin.totalseg_setup_manually:main',
'totalseg_set_license=totalsegmentator.bin.totalseg_set_license:main'
],
},
)