-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
32 lines (25 loc) · 866 Bytes
/
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
#!/usr/bin/env python
from distutils.core import setup
from distutils.command.install_scripts import install_scripts
class post_install(install_scripts):
def run(self):
install_scripts.run(self)
from shutil import move
for i in self.get_outputs():
n = i.replace('.py', '')
move(i, n)
print "moving '{0}' to '{1}'".format(i, n)
ID = 'org.cream.HotkeyManager'
data_files = [
('share/cream/{0}'.format(ID), ['src/manifest.xml']),
('share/dbus-1/services', ['src/org.cream.HotkeyManager.service'])
]
setup(
name = 'hotkey-manager',
version = '0.1.1',
author = 'The Cream Project (http://cream-project.org)',
url = 'http://github.com/cream/hotkey-manager',
data_files = data_files,
cmdclass={'install_scripts': post_install},
scripts = ['src/hotkey-manager.py']
)