forked from zudi-lin/pytorch_connectomics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·48 lines (40 loc) · 1.12 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
import os
import sys
from distutils.sysconfig import get_python_inc
from setuptools import setup, Extension, find_packages
requirements = [
'jupyter>=1.0',
'scipy>=1.5',
'scikit-learn>=0.23.1',
'scikit-image>=0.17.2',
'opencv-python>=4.3.0',
'matplotlib>=3.3.0',
'Cython>=0.29.22',
'yacs>=0.1.8',
'h5py>=2.10.0',
'gputil>=1.4.0',
'imageio>=2.9.0',
'tensorboard>=2.2.2',
'einops>=0.3.0',
'tqdm>=4.58.0',
'monai>=0.9.1',
]
def getInclude():
dirName = get_python_inc()
return [dirName, os.path.dirname(dirName)]
def setup_package():
__version__ = '0.1'
url = 'https://github.com/zudi-lin/pytorch_connectomics'
setup(name='connectomics',
description='Semantic and instance segmentation toolbox for EM connectomics',
version=__version__,
url=url,
license='MIT',
author='PyTorch Connectomics Contributors',
install_requires=requirements,
include_dirs=getInclude(),
packages=find_packages(),
)
if __name__ == '__main__':
# pip install --editable .
setup_package()