forked from domogik/domogik
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·128 lines (110 loc) · 3.47 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
#!/usr/bin/env python
# -*- coding: utf-8 -*-
""" This file is part of B{Domogik} project (U{http://www.domogik.org}).
License
=======
B{Domogik} is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
B{Domogik} is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Domogik. If not, see U{http://www.gnu.org/licenses}.
Module purpose
==============
Help to manage Domogik installation
Implements
==========
@author: Domogik project
@copyright: (C) 2007-2012 Domogik project
@license: GPL(v3)
@organization: Domogik
"""
import ez_setup
ez_setup.use_setuptools()
import os
from setuptools import setup, find_packages
import platform
import sys
if sys.version_info[0] == 3:
netifaces = 'netifaces-py3'
else:
netifaces = 'netifaces'
pyzmq_found = False
mysql = 'pymysql'
magic = 'python-magic >= 0.4.3'
import pip
for mod in pip.get_installed_distributions():
if ( mod.key == 'mysql-python' ):
mysql = 'mysql-python'
if ( mod.key == 'magic-file-extensions' ):
magic = 'magic-file-extensions'
if ( mod.key == 'pyzmq' ):
pyzmq_found = True
print "******************************************"
print "use: "+mysql
print "use: "+magic
print "******************************************"
setup(
name = 'Domogik',
version = '0.5.0',
url = 'http://www.domogik.org/',
description = 'OpenSource home automation software',
author = 'Domogik team',
author_email = 'domogik-general@lists.labs.libre-entreprise.org',
install_requires=['setuptools',
'sqlalchemy',
'alembic >= 0.7.4',
'simplejson >= 1.9.2',
'pyOpenSSL >= 0.10',
'psutil >= 0.1.3',
mysql,
'psycopg2',
'pip >= 1.0',
'pyserial >= 2.5',
'netifaces >= 0.10',
'Twisted >= 12.0.0',
'Flask >= 0.8',
'Flask-WTF >= 0.6',
'Flask-Login >= 0.3.2',
'Flask-Babel',
'Flask-Themes2',
'tornado >= 4.2',
'requests >= 0.12.1',
magic,
'pyzmq >= 2.2.0',
'ephem'],
zip_safe = False,
license = 'GPL v3',
#include_package_data = True,
packages = find_packages('src', exclude=["mpris"]),
package_dir = { '': 'src' },
test_suite = 'domogik.tests',
package_data = {},
scripts=[],
entry_points = {
'console_scripts': [
"""
dmg_manager = domogik.bin.manager:main
dmg_send = domogik.bin.send:main
dmg_dump = domogik.bin.dump_xpl:main
dmg_version = domogik.bin.version:main
dmg_hub = domogik.bin.hub:main
dmg_package = domogik.bin.package:main
dmg_testrunner = domogik.tests.bin.testrunner:main
"""
]
},
classifiers=[
"Topic :: Home Automation",
"Environment :: No Input/Output (Daemon)",
"Programming Language :: Python",
"Development Status :: 4 - Beta",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Natural Language :: English"
]
)