-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
72 lines (58 loc) · 1.96 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Setup file for clusteror.
This file was generated with PyScaffold 2.5.7, a tool that easily
puts up a scaffold for your new Python project. Learn more under:
http://pyscaffold.readthedocs.org/
"""
import sys
from setuptools import setup
import versioneer
def is_platform_windows():
return sys.platform == 'win32' or sys.platform == 'cygwin'
def is_platform_linux():
return sys.platform == 'linux2'
def is_platform_mac():
return sys.platform == 'darwin'
# args to ignore warnings
if is_platform_windows():
extra_compile_args = []
else:
extra_compile_args = ['-Wno-unused-function']
def setup_package():
with open('README.rst', 'r') as f:
long_description = f.read()
classifiers = '''
Development Status :: 2 - Pre-Alpha
Intended Audience :: Science/Research
License :: OSI Approved :: MIT License
Natural Language :: English
Operating System :: OS Independent
Programming Language :: Python :: 3 :: Only
Topic :: Scientific/Engineering
'''
needs_sphinx = {'build_sphinx', 'upload_docs'}.intersection(sys.argv)
sphinx = ['sphinx'] if needs_sphinx else []
setup(
name='clusteror',
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
description='Unsupervised Clustering Toolkit.',
long_description=long_description,
url='https://github.com/enfeizhan/clusteror',
author='Fei Zhan',
author_email='[email protected]',
license='MIT License',
packages=['clusteror', 'tests'],
platforms='any',
setup_requires=['six', 'pyscaffold>=2.5a0,<2.6a0'] + sphinx,
classifiers=classifiers,
use_pyscaffold=True,
install_requires=['theano>=0.8.0', 'pandas>=0.18.0'],
package_data={
'tests': ['readme_pics/*.png']
}
)
if __name__ == "__main__":
setup_package()