-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathsetup.py
55 lines (44 loc) · 1.57 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
from os import path
import setuptools
from setuptools import setup, find_packages
version = int(setuptools.__version__.split('.')[0])
assert version > 30, "Dataflow installation requires setuptools > 30"
this_directory = path.abspath(path.dirname(__file__))
# setup metainfo
with open(path.join(this_directory, 'README.md'), 'rb') as f:
long_description = f.read().decode('utf-8')
__version__ = '0.9.5'
setup(
name='dataflow',
author="TensorPack contributors",
author_email="[email protected]",
url="https://github.com/tensorpack/dataflow",
keywords="deep learning, neural network, data processing",
license="Apache",
version=__version__, # noqa
description='',
long_description=long_description,
long_description_content_type='text/markdown',
packages=find_packages(exclude=["examples", "tests"]),
zip_safe=False, # dataset and __init__ use file
install_requires=[
"numpy>=1.14",
"six",
"termcolor>=1.1",
"tabulate>=0.7.7",
"tqdm>4.29.0",
"msgpack>=0.5.2",
"msgpack-numpy>=0.4.4.2",
"pyzmq>=16",
"psutil>=5",
"subprocess32; python_version < '3.0'",
"functools32; python_version < '3.0'",
],
tests_require=['flake8'],
extras_require={
'all': ['scipy', 'h5py', 'lmdb>=0.92', 'matplotlib', 'scikit-learn'],
'all: "linux" in sys_platform': ['python-prctl'],
},
# https://packaging.python.org/guides/distributing-packages-using-setuptools/#universal-wheels
options={'bdist_wheel': {'universal': '1'}},
)