__pkginfo__.py
branch3.1
changeset 2027 85eae6a79f75
parent 859 17555e9b9854
child 963 fc73fd8ba8d6
equal deleted inserted replaced
1371:a81d3babb582 2027:85eae6a79f75
     4 """
     4 """
     5 
     5 
     6 distname = "cubicweb"
     6 distname = "cubicweb"
     7 modname = "cubicweb"
     7 modname = "cubicweb"
     8 
     8 
     9 numversion = (3, 0, 3)
     9 numversion = (3, 0, 10)
    10 version = '.'.join(str(num) for num in numversion)
    10 version = '.'.join(str(num) for num in numversion)
    11 
    11 
    12 license = 'LCL'
    12 license = 'GPL'
    13 copyright = '''Copyright (c) 2003-2008 LOGILAB S.A. (Paris, FRANCE).
    13 copyright = '''Copyright (c) 2003-2009 LOGILAB S.A. (Paris, FRANCE).
    14 http://www.logilab.fr/ -- mailto:contact@logilab.fr'''
    14 http://www.logilab.fr/ -- mailto:contact@logilab.fr'''
    15 
    15 
    16 author = "Logilab"
    16 author = "Logilab"
    17 author_email = "contact@logilab.fr"
    17 author_email = "contact@logilab.fr"
    18 
    18 
    25 * a RQL command line client to the repository
    25 * a RQL command line client to the repository
    26 * an adaptative modpython interface to the server
    26 * an adaptative modpython interface to the server
    27 * a bunch of other management tools
    27 * a bunch of other management tools
    28 """
    28 """
    29 
    29 
    30 web = ''
    30 web = 'http://www.cubicweb.org'
    31 ftp = ''
    31 ftp = 'ftp://ftp.logilab.org/pub/cubicweb'
    32 pyversions = ['2.4']
    32 pyversions = ['2.4', '2.5']
    33 
    33 
    34 
    34 
       
    35 import sys
    35 from os import listdir, environ
    36 from os import listdir, environ
    36 from os.path import join, isdir
    37 from os.path import join, isdir
    37 import glob
    38 import glob
    38 
    39 
    39 scripts = [s for s in glob.glob(join('bin', 'cubicweb-*'))
    40 scripts = [s for s in glob.glob(join('bin', 'cubicweb-*'))
    58 
    59 
    59 if environ.get('APYCOT_ROOT'):
    60 if environ.get('APYCOT_ROOT'):
    60     # --home install
    61     # --home install
    61     pydir = 'python'
    62     pydir = 'python'
    62 else:
    63 else:
    63     pydir = join('python2.4', 'site-packages')
    64     python_version = '.'.join(str(num) for num in sys.version_info[0:2])
       
    65     pydir = join('python' + python_version, 'site-packages')
    64 
    66 
    65 try:
    67 try:
    66     data_files = [
    68     data_files = [
    67         # common data
    69         # common data
    68         #[join('share', 'cubicweb', 'entities'),
    70         #[join('share', 'cubicweb', 'entities'),
    88         [join('lib', pydir, 'cubicweb', 'web', 'views'),
    90         [join('lib', pydir, 'cubicweb', 'web', 'views'),
    89          [join(views_dir, fname) for fname in listdir(views_dir) if fname.endswith('.pt')]],
    91          [join(views_dir, fname) for fname in listdir(views_dir) if fname.endswith('.pt')]],
    90         [join('share', 'cubicweb', 'cubes', 'shared', 'i18n'),
    92         [join('share', 'cubicweb', 'cubes', 'shared', 'i18n'),
    91          [join(i18n_dir, fname) for fname in listdir(i18n_dir)]],
    93          [join(i18n_dir, fname) for fname in listdir(i18n_dir)]],
    92         # skeleton
    94         # skeleton
    93         
       
    94         ]
    95         ]
    95 except OSError:
    96 except OSError:
    96     # we are in an installed directory, don't care about this
    97     # we are in an installed directory, don't care about this
    97     pass
    98     pass