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
|
import sys
import os
from distutils.core import setup
__version__ = open('VERSION').readline().strip()
setup(
name='quizzical-student',
version=__version__,
description='Quizzical - Quiz Manager - Student Client',
author='Ryan Rousseau',
author_email='ryan.rousseau@gmail.com',
data_files=[
('/usr/share/pixmaps',
['data/pixmaps/quizzical-student.svg']
),
('/usr/share/applications/',
['data/quizzical-student.desktop']
),
('/usr/share/quizzical/student/',
['README', 'VERSION', 'ChangeLog', 'INSTALL',
'LICENSE']
),
('/usr/share/quizzical/student/pixmaps',
['data/pixmaps/quizzical-student.svg']
),
('/usr/share/quizzical/glade',
['data/glade/quizzical-student.glade']
),
('/usr/share/quizzical/student/certs',
['data/certs/ca.pem',
'data/certs/client.pem']
),
],
packages=['quizzical.student', 'quizzical.student.gtk'],
scripts=['bin/quizzical-student'],
license='GPL',
)
if sys.argv[1] == 'install':
print '\nupdating desktop database'
command = 'update-desktop-database'
p = os.popen(command)
for line in p:
print line.strip()
p.close()
|