-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
86 lines (75 loc) · 2.84 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# -*- coding: utf-8 -*-
"""
.. codeauthor:: Daniel Seichter <daniel.seichter@tu-ilmenau.de>
.. codeauthor:: Soehnke Fischedick <soehnke-benedikt.fischedick@tu-ilmenau.de>
"""
import os
from setuptools import find_packages
from setuptools import setup
import sys
def run_setup():
# get version
version_namespace = {}
version_fp = os.path.join('nicr_scene_analysis_datasets', 'version.py')
with open(version_fp) as version_file:
exec(version_file.read(), version_namespace)
version = version_namespace['get_version'](with_suffix=False)
requirements_general = [
'cityscapesScripts==1.5.0',
'numpy',
'pillow',
'scipy',
'tqdm>=4.42.0',
]
# OpenCV might be installed using another name
try:
import cv2
except ImportError:
requirements_general.append('opencv-python')
if sys.version_info <= (3, 7):
# python 3.6 does not support dataclasses
requirements_general.append('dataclasses')
requirements_prepare = [
'h5py',
'numba',
'pandas',
'panopticapi @ git+https://github.com/cocodataset/panopticapi.git',
'protobuf',
'termcolor',
]
requirements_3d = [
'open3d',
'plyfile',
]
# setup
setup(name='nicr_scene_analysis_datasets',
version='{}.{}.{}'.format(*version),
description='Package to prepare and use common datasets for scene '
'analysis.',
author='Daniel Seichter, Soehnke Fischedick',
author_email='daniel.seichter@tu-ilmenau.de, '
'soehnke-benedikt.fischedick@tu-ilmenau.de',
license='Copyright 2020-2023, Neuroinformatics and Cognitive Robotics'
'Lab TU Ilmenau, Ilmenau, Germany',
packages=find_packages(),
install_requires=requirements_general,
extras_require={
'withpreparation': requirements_prepare,
'with3d': requirements_3d,
'test': [
'pytest>=3.0.2',
'torch' # should be installed using conda
]
},
entry_points={
'console_scripts': [
'nicr_sa_prepare_dataset=nicr_scene_analysis_datasets.scripts.prepare_dataset:main',
'nicr_sa_prepare_labeled_point_clouds=nicr_scene_analysis_datasets.scripts.prepare_labeled_point_clouds:main',
'nicr_sa_depth_viewer=nicr_scene_analysis_datasets.scripts.viewer_depth:main',
'nicr_sa_semantic_instance_viewer=nicr_scene_analysis_datasets.scripts.viewer_semantic_instance:main',
'nicr_sa_labeled_pc_viewer=nicr_scene_analysis_datasets.scripts.viewer_labeled_point_cloud:main'
],
},
include_package_data=True)
if __name__ == '__main__':
run_setup()