-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
57 lines (44 loc) · 1.72 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
import os, sys
from distutils.core import setup
from distutils.version import StrictVersion
from glob import glob
def get_files(path):
files = []
elements = glob(path + '/*')
for elem in elements:
if os.path.isdir(elem):
files.extend(get_files(os.path.join(elem)))
else:
files.append(os.path.join(elem))
return files
data_dirs = ('locale', 'misc')
data_files = []
for data_dir in data_dirs:
data_files.extend(get_files(data_dir))
setup_data_files = []
for file in data_files:
setup_data_files.append(('share/games/canta/'+os.path.dirname(file), [file]))
setup_data_files.append(('share/games/canta/', ['run_canta', 'run_song_generator', 'run_view_theme']))
setup_data_files.append(('share/pixmaps', ['misc/canta.png', 'misc/csg.png']))
setup_data_files.append(('share/applications', ['misc/canta.desktop', 'misc/csg.desktop']))
setup_data_files.append(('share/games/canta/misc', ['misc/HELP.txt', 'misc/ABOUT.txt', 'misc/configspec']))
#setup_data_files.append(('games/bin', ['starter/canta', 'starter/csg']))
dirs = []
elements = glob('canta/*')
for elem in elements:
if os.path.isdir(elem):
dirs.append(elem)
dirs.append('canta')
dirs.append('canta.event.subjects')
dirs.append('canta.event.observers')
setup( name = 'canta',
description = "Canta is a 3D karaoke plattform for fun and education",
url = "http://www.canta-game.org",
packages = dirs,
#packages = find_packages(),
package_dir={'canta': 'canta'},
scripts = ['starter/canta', 'starter/csg'],
author="Andreas Kattner, Felix R. Lopez, Stefan Huchler",
data_files = setup_data_files,
)