Diff of /setup.py [000000] .. [e571d1]

Switch to unified view

a b/setup.py
1
#!/usr/bin/env python
2
3
import sys
4
import setuptools
5
6
python_version = sys.version[:3]
7
8
if (python_version != '3.6') & (python_version != '3.8'):
9
    raise Exception('Setup.py only works with python version 3.6 or 3.8, not {}'.format(python_version))
10
11
else:
12
13
    with open('requirements_python' + python_version + '.txt') as f:
14
        required_packages = [line.strip() for line in f.readlines()]
15
16
    print(setuptools.find_packages())
17
18
    setuptools.setup(name='SynthSeg',
19
                     version='2.0',
20
                     license='Apache 2.0',
21
                     description='Domain-agnostic segmentation of brain scans',
22
                     author='Benjamin Billot',
23
                     url='https://github.com/BBillot/SynthSeg',
24
                     keywords=['segmentation', 'domain-agnostic', 'brain'],
25
                     packages=setuptools.find_packages(),
26
                     python_requires='>=3.6',
27
                     install_requires=required_packages,
28
                     include_package_data=True)