__pkginfo__.py
changeset 0 b97547f5f1fa
child 65 ef636f74bd22
equal deleted inserted replaced
-1:000000000000 0:b97547f5f1fa
       
     1 # pylint: disable-msg=W0622,C0103
       
     2 """cubicweb global packaging information for the cubicweb knowledge management
       
     3 software
       
     4 """
       
     5 
       
     6 distname = "cubicweb"
       
     7 modname = "cubicweb"
       
     8 
       
     9 numversion = (3, 0, 0)
       
    10 version = '.'.join(str(num) for num in numversion)
       
    11 
       
    12 license = 'LCL'
       
    13 copyright = '''Copyright (c) 2003-2008 LOGILAB S.A. (Paris, FRANCE).
       
    14 http://www.logilab.fr/ -- mailto:contact@logilab.fr'''
       
    15 
       
    16 author = "Logilab"
       
    17 author_email = "contact@logilab.fr"
       
    18 
       
    19 short_desc = "a repository of entities / relations for knowledge management"
       
    20 long_desc = """CubicWeb is a entities / relations based knowledge management system
       
    21 developped at Logilab.
       
    22 
       
    23 This package contains:
       
    24 * a repository server
       
    25 * a RQL command line client to the repository
       
    26 * an adaptative modpython interface to the server
       
    27 * a bunch of other management tools
       
    28 """
       
    29 
       
    30 web = ''
       
    31 ftp = ''
       
    32 pyversions = ['2.4']
       
    33 
       
    34 
       
    35 from os import listdir, environ
       
    36 from os.path import join, isdir
       
    37 import glob
       
    38 
       
    39 scripts = [s for s in glob.glob(join('bin', 'cubicweb-*'))
       
    40            if not s.endswith('.bat')]
       
    41 include_dirs = [join('common', 'test', 'data'),
       
    42                 join('server', 'test', 'data'),
       
    43                 join('web', 'test', 'data'),
       
    44                 join('devtools', 'test', 'data'),]
       
    45 
       
    46 
       
    47 entities_dir = 'entities'
       
    48 schema_dir = 'schemas'
       
    49 sobjects_dir = 'sobjects'
       
    50 server_migration_dir = join('misc', 'migration')
       
    51 data_dir = join('web', 'data')
       
    52 wdoc_dir = join('web', 'wdoc')
       
    53 wdocimages_dir = join(wdoc_dir, 'images')
       
    54 views_dir = join('web', 'views')
       
    55 i18n_dir = 'i18n'
       
    56 
       
    57 if environ.get('APYCOT_ROOT'):
       
    58     # --home install
       
    59     pydir = 'python'
       
    60 else:
       
    61     pydir = join('python2.4', 'site-packages')
       
    62 try:
       
    63     data_files = [
       
    64         # common data
       
    65         #[join('share', 'cubicweb', 'entities'),
       
    66         # [join(entities_dir, filename) for filename in listdir(entities_dir)]],
       
    67         # server data
       
    68         [join('share', 'cubicweb', 'schemas'),
       
    69          [join(schema_dir, filename) for filename in listdir(schema_dir)]],
       
    70         #[join('share', 'cubicweb', 'sobjects'),
       
    71         # [join(sobjects_dir, filename) for filename in listdir(sobjects_dir)]],
       
    72         [join('share', 'cubicweb', 'migration'),
       
    73          [join(server_migration_dir, filename)
       
    74           for filename in listdir(server_migration_dir)]],
       
    75         # web data
       
    76         [join('share', 'cubicweb', 'cubes', 'shared', 'data'),
       
    77          [join(data_dir, fname) for fname in listdir(data_dir) if not isdir(join(data_dir, fname))]],
       
    78         [join('share', 'cubicweb', 'cubes', 'shared', 'data', 'timeline'),
       
    79          [join(data_dir, 'timeline', fname) for fname in listdir(join(data_dir, 'timeline'))]],
       
    80         [join('share', 'cubicweb', 'cubes', 'shared', 'wdoc'),
       
    81          [join(wdoc_dir, fname) for fname in listdir(wdoc_dir) if not isdir(join(wdoc_dir, fname))]],
       
    82         [join('share', 'cubicweb', 'cubes', 'shared', 'wdoc', 'images'),
       
    83          [join(wdocimages_dir, fname) for fname in listdir(wdocimages_dir)]],
       
    84         # XXX: .pt install should be handled properly in a near future version
       
    85         [join('lib', pydir, 'cubicweb', 'web', 'views'),
       
    86          [join(views_dir, fname) for fname in listdir(views_dir) if fname.endswith('.pt')]],
       
    87         [join('share', 'cubicweb', 'cubes', 'shared', 'i18n'),
       
    88          [join(i18n_dir, fname) for fname in listdir(i18n_dir)]],
       
    89         ]
       
    90 except OSError:
       
    91     # we are in an installed directory, don't care about this
       
    92     pass