-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
43 lines (37 loc) · 1.42 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
#! /usr/bin/python
import sys, os, os.path
from distutils.core import setup
from glob import glob
# to install type:
# python setup.py install --root=/
def no_empty(l):
return filter(lambda (i,j): j, l)
def recusive_data_dir(to, src, l=None):
D=glob(os.path.join(src,'*'))
files=filter( lambda i: os.path.isfile(i), D )
dirs=filter( lambda i: os.path.isdir(i), D )
if l==None: l=[]
l.append( (to , files ) )
for d in dirs: recusive_data_dir( os.path.join(to,os.path.basename(d)), d , l)
return l
locales=map(lambda i: ('share/'+i,[''+i+'/ojuba-mimic.mo',]),glob('locale/*/LC_MESSAGES'))
#data_files=no_empty(recusive_data_dir('share/ojuba-mimic/ojuba-mimic-files', 'ojuba-mimic-files'))
data_files=[]
data_files.extend(locales)
setup (name='OjubaMimic', version='0.2.0',
description='Ojuba Multi Media Converter based on ffmpeg',
author='Muayyad Saleh Alsadi',
author_email='[email protected]',
url='http://git.ojuba.org/',
license='Waqf',
packages=['OjubaMimic'],
#py_modules = ['OjubaMimic'],
scripts=['ojuba-mimic'],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: End Users/Desktop',
'Operating System :: POSIX',
'Programming Language :: Python',
],
data_files=data_files
)