-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
executable file
·32 lines (29 loc) · 1.38 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
#!/usr/bin/env python
from distutils.core import setup
import glob, os
def pluginsFolders():
basepath = "pyazan/plugins"
for dir in os.listdir(basepath):
plugin = os.path.join(basepath, dir)
if os.path.isdir(plugin):
yield plugin
print list(pluginsFolders())
setup(name='PyAzan',
version='0.1',
description='Python Azan Notifier',
author='Jo De Boeck',
author_email='deboeck.jo@gmail.com',
url='http://github.com/grimpy/pyazan',
packages=['pyazan', 'pyazan/plugins'] + list(pluginsFolders()),
scripts=['pyazangtk'],
data_files=[('share/pixmaps/pyazan', glob.glob('data/*.png')),
('share/pixmaps/', ['data/pyazan_icon.png']),
('share/sounds/pyazan', ['data/azan.mp3']),
('share/applications', ['data/PyAzan.desktop']),
('share/icons/hicolor/16x16/apps', glob.glob('data/icons/16x16/apps/*.png')),
('share/icons/hicolor/22x22/apps', glob.glob('data/icons/22x22/apps/*.png')),
('share/icons/hicolor/24x24/apps', glob.glob('data/icons/24x24/apps/*.png')),
('share/icons/hicolor/32x32/apps', glob.glob('data/icons/32x32/apps/*.png')),
('share/icons/hicolor/48x48/apps', glob.glob('data/icons/48x48/apps/*.png')),
('share/pyazan/ui/', glob.glob('ui/*.xml'))]
)