forked from andrebrait/nvidia-power-indicator
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
64 lines (61 loc) · 2.11 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
# -*- coding: utf-8 -*-
# This file is part of NVIDIA Power Manager - indicator applet for NVIDIA
# laptops.
# Copyright (C) 2018 Dmitri Lapin
#
# This work is based on the NVIDIA Power Indicator applet by
# André Brait Carneiro Fabotti
#
# NVIDIA Power Manager 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.
#
# NVIDIA Power Manager 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 NVIDIA Power Manager. If not, see <http://www.gnu.org/licenses/>.
from setuptools import setup, find_packages
setup(
name='nvidia-power-manager',
use_scm_version=True,
install_requires=[
'py3nvml'
],
setup_requires=[
'setuptools_scm'
],
python_requires='>=3',
description='Indicator applet to turn On / Off nvidia GPU on laptops',
author='Dmitri Lapin',
author_email='[email protected]',
url='https://github.com/dm0/nvidia-power-manager',
license='GPLv3',
packages=find_packages(exclude=['tests.*']),
package_data={'nvidia_power_manager': ['icons/*.svg', 'sbin/gpuswitcher']},
entry_points={
'console_scripts': [
'nvidia-power-manager=nvidia_power_manager.app:main'
]
},
data_files=[
('/etc/xdg/autostart', [
'nvidia_power_manager/etc/xdg/autostart/'
'nvidia-power-manager.desktop'
]),
('/etc/sudoers.d', [
'nvidia_power_manager/etc/sudoers.d/'
'99-nvidia-power-manager-sudoers'
]),
('share/icons', [
'nvidia_power_manager/icons/nvidia-power-manager-active.svg'
]),
('/usr/lib/nvidia-power-manager', [
'nvidia_power_manager/sbin/gpuswitcher'
])
],
zip_safe=False
)