skeleton/__pkginfo__.py.tmpl
changeset 139 16aafc56a1ac
parent 0 b97547f5f1fa
child 166 879d78d37d47
equal deleted inserted replaced
138:ed8a7efaadb6 139:16aafc56a1ac
    17 long_desc = '''%(longdesc)s'''
    17 long_desc = '''%(longdesc)s'''
    18 
    18 
    19 from os import listdir as _listdir
    19 from os import listdir as _listdir
    20 from os.path import join, isdir
    20 from os.path import join, isdir
    21 
    21 
    22 from glob import glob
    22 web = ''
    23 scripts = glob(join('bin', '%(cubename)s-*'))
       
    24 
       
    25 web, ftp = '', ''
       
    26 
    23 
    27 pyversions = ['2.4']
    24 pyversions = ['2.4']
    28 
    25 
    29 #from cubicweb.devtools.pkginfo import get_distutils_datafiles
    26 #from cubicweb.devtools.pkginfo import get_distutils_datafiles
    30 CUBES_DIR = join('share', 'cubicweb', 'cubes')
    27 CUBES_DIR = join('share', 'cubicweb', 'cubes')
    38 
    35 
    39 try:
    36 try:
    40     data_files = [
    37     data_files = [
    41         # common files
    38         # common files
    42         [THIS_CUBE_DIR, [fname for fname in glob('*.py') if fname != 'setup.py']],
    39         [THIS_CUBE_DIR, [fname for fname in glob('*.py') if fname != 'setup.py']],
    43         
    40         ]    
    44         # client (web) files
       
    45         [join(THIS_CUBE_DIR, 'data'),  listdir('data')],
       
    46         [join(THIS_CUBE_DIR, 'i18n'),  listdir('i18n')],
       
    47         
       
    48         # server files
       
    49         [join(THIS_CUBE_DIR, 'migration'), listdir('migration')],
       
    50         ]
       
    51     
       
    52     # check for possible extended cube layout
    41     # check for possible extended cube layout
    53     for dirname in ('entities', 'views', 'sobjects', 'schema'):
    42     for dirname in ('entities', 'views', 'sobjects', 'schema', 'data', 'i18n', 'migration'):
    54         if isdir(dirname):
    43         if isdir(dirname):
    55             data_files.append([join(THIS_CUBE_DIR, dirname), listdir(dirname)])
    44             data_files.append([join(THIS_CUBE_DIR, dirname), listdir(dirname)])
    56     # Note: here, you'll need to add subdirectories if you want
    45     # Note: here, you'll need to add subdirectories if you want
    57     # them to be included in the debian package
    46     # them to be included in the debian package
    58 except OSError:
    47 except OSError:
    60     pass
    49     pass
    61 
    50 
    62 
    51 
    63 cube_eid = None # <=== FIXME if you need direct bug-subscription
    52 cube_eid = None # <=== FIXME if you need direct bug-subscription
    64 __use__ = (%(dependancies)s)
    53 __use__ = (%(dependancies)s)
       
    54 __recommend__ = ()
    65 
    55