This repository has been archived by the owner on Nov 22, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
81 lines (73 loc) · 2.71 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
#!/usr/bin/env python
"""Installer for radeontray program
Copyright 2012-2013 Francisco Pina Martins <[email protected]>
and Mirco Tracolli.
This file is part of Radeon-tray.
Radeon-tray 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.
Radeon-tray 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 Radeon-tray. If not, see <http://www.gnu.org/licenses/>.
"""
from setuptools import setup
import radeontray
import os, sys
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
def main():
r_pyqt = False
r_zmq = False
try:
import PyQt4
r_pyqt = True
except ImportError:
print("This program requires PyQt4")
try:
import zmq
r_zmq = True
except ImportError:
print("This program requires pyzmq version >= 13.0.0")
if not r_pyqt or not r_zmq:
sys.exit(1)
setup(
name='Radeon-tray',
zip_safe=False,
#Include data from MANIFEST.in
#include_package_data = True,
version=radeontray.__version__,
author="Pina Martins",
author_email='[email protected]',
# To add
#long_description=read('README'),
description='A small program to control the power profiles of your Radeon card via systray icon.',
url='https://github.com/StuntsPT/Radeon-tray',
license="GPLv3",
keywords = "radeon tray icon",
#setup_requires=['pyzmq>=13.0.0', 'PyQt4'],
dependency_links = ['http://sourceforge.net/projects/pyqt/files/latest/download?source=files'],
packages=['radeontray'],
package_data={'radeontray':
['assets/*.svg', 'devel/*.py', 'systemd/*.service', 'conf/*.desktop']
},
#scripts=SCRIPTS,
#data_files=DATA_FILES,
entry_points={
'console_scripts': [
'radeontray = radeontray.mainfunctions:client',
'radeontrayserver = radeontray.mainfunctions:server'
]
},
classifiers=[
"Development Status :: 4 - Beta",
"Topic :: Utilities",
"Topic :: System :: Monitoring",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)"
]
)
if __name__ == '__main__':
sys.exit(main())