-
Notifications
You must be signed in to change notification settings - Fork 18
/
setup.py
66 lines (59 loc) · 1.99 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
from setuptools import setup, find_packages, Extension
import version
with open('requirements.txt') as f:
required = f.read().splitlines()
with open('requirements-optional.txt') as f:
optionals = f.read().splitlines()
requirements = []
links = []
for requirement in required:
if requirement[0:3] == 'git':
links += [requirement + '#egg=' + requirement.split('/')[-1] + '-0']
requirements += [requirement.split('/')[-1]]
else:
requirements += [requirement]
optional_requirements = []
optional_links = []
for requirement in optionals:
if requirement[0:3] == 'git':
optional_links += [requirement + '#egg=' + requirement.split('/')[-1] + '-0']
optional_requirements += [requirement.split('/')[-1].split('#')[0]]
else:
optional_requirements += [requirement]
setup(
name='stride',
version=version.__version__,
description='A (somewhat) general optimisation framework for ultrasound medical imaging',
long_description='A (somewhat) general optimisation framework for ultrasound medical imaging',
url='https://github.com/trustimaging/stride',
author='TRUST',
author_email='[email protected]',
license='AGPL-3.0',
python_requires=">=3.8",
packages=find_packages(exclude=['docs', 'tests', 'legacy*']),
package_data={},
include_package_data=True,
install_requires=requirements,
extras_require={'extras': optional_requirements},
dependency_links=links,
ext_modules=[
Extension('_profile',
sources=['mosaic/profile/_profile.c'])
],
scripts=[
'mosaic/cli/mrun',
'mosaic/cli/imrun',
],
entry_points={
'console_scripts': [
'mrun=mosaic.cli.mrun:go',
'mrun_=mosaic.cli.mrun:go',
'mscript=mosaic.cli.mscript:go',
'mprof=mosaic.cli.mprof:go',
'findomp=mosaic.cli.findomp:go',
'plot=stride.cli.plot:go',
]
},
zip_safe=False,
test_suite='tests'
)