forked from funkelab/gunpowder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
62 lines (55 loc) · 1.49 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
import os
from setuptools import setup
try:
import base_string as string_types
except ImportError:
string_types = str
extras_require = {
'tensorflow': ['tensorflow<2'],
'pytorch': ['torch'],
}
dep_set = set()
for value in extras_require.values():
if isinstance(value, string_types):
dep_set.add(value)
else:
dep_set.update(value)
extras_require['full'] = list(dep_set)
name = 'gunpowder'
here = os.path.abspath(os.path.dirname(__file__))
version_info = {}
with open(os.path.join(here, name, 'version_info.py')) as fp:
exec(fp.read(), version_info)
version = version_info['_version']
setup(
name=name,
version=str(version),
description='Data loading DAG for Greentea.',
url='https://github.com/funkey/gunpowder',
author='Jan Funke',
author_email='[email protected]',
license='MIT',
packages=[
'gunpowder',
'gunpowder.nodes',
'gunpowder.tensorflow',
'gunpowder.tensorflow.nodes',
'gunpowder.torch',
'gunpowder.torch.nodes',
'gunpowder.contrib',
'gunpowder.contrib.nodes',
'gunpowder.ext',
'gunpowder.zoo',
'gunpowder.zoo.tensorflow'
],
install_requires=[
"numpy",
"scipy",
"h5py",
"scikit-image",
"requests",
"augment-nd",
"tqdm"
],
extras_require=extras_require,
)