-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
34 lines (30 loc) · 1.3 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
#!/usr/bin/env python
from distutils.core import setup
import os
def get_version ():
f = open("version.txt", "r")
f.seek(0)
lines = f.read()
f.close()
return "".join(lines).split("\n")[0]
setup(name='pypoweroff',
version=get_version(),
description='pyPowerOff package',
long_description = "Simple python powerroff program written on pyGTK",
author='Vitaly Tonkacheyev',
author_email='[email protected]',
url='http://sites.google.com/site/thesomeprojects/',
maintainer='Vitaly Tonkacheyev',
maintainer_email='[email protected]',
packages = ['pypoweroff'],
scripts=['pypoff'],
data_files=[('/usr/share/applications', ['pypoweroff.desktop']),
('/usr/share/pypoweroff/images', ['images/poweroff.ico']),
('/usr/share/pypoweroff/images', ['images/poweroff.png']),
('/usr/share/pypoweroff/images', ['images/tb_icon.png']),
('/usr/share/pypoweroff/glades', ['glades/powoff.glade']),
('/usr/share/pypoweroff/lang', ['lang/ru.lng']),
('/usr/share/pypoweroff/lang', ['lang/en.lng']),
('/usr/share/pypoweroff/lang', ['lang/ua.lng']),
],
)