-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
41 lines (36 loc) · 1.16 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
import sys
from setuptools import find_packages, setup
import platform
with open("README.md", "r", errors='ignore') as f:
long_description = f.read()
with open('requirements.txt', 'r', encoding='utf-8', errors='ignore') as ff:
required = ff.read().splitlines()
if platform.system() == 'Darwin' and platform.processor() == 'arm': # Specific for Apple M1 chips
required.append('onnxruntime-silicon')
else:
required.append('onnxruntime')
setup(
name='raidionicsseg',
packages=find_packages(
include=[
'raidionicsseg',
'raidionicsseg.Utils',
'raidionicsseg.PreProcessing',
'raidionicsseg.Inference',
'tests',
]
),
entry_points={
'console_scripts': [
'raidionicsseg = raidionicsseg.__main__:main'
]
},
install_requires=required,
python_requires=">=3.8",
version='1.3.0',
author='David Bouget ([email protected])',
license='BSD 2-Clause',
description='Raidionics segmentation and classification back-end with ONNX runtime',
long_description=long_description,
long_description_content_type="text/markdown",
)