author | Aurelien Campeas <aurelien.campeas@logilab.fr> |
Mon, 16 Feb 2009 13:59:06 +0100 | |
changeset 625 | e57cc039b418 |
parent 482 | 2e400b8dfc25 |
child 840 | 874347eba220 |
child 858 | e6ae125d5903 |
permissions | -rw-r--r-- |
0 | 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 |
||
482 | 9 |
numversion = (3, 0, 4) |
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')] |
|
265
97361ddaf342
fix include_dirs
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
264
diff
changeset
|
41 |
include_dirs = [join('test', 'data'), |
97361ddaf342
fix include_dirs
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
264
diff
changeset
|
42 |
join('common', 'test', 'data'), |
0 | 43 |
join('server', 'test', 'data'), |
44 |
join('web', 'test', 'data'), |
|
265
97361ddaf342
fix include_dirs
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
264
diff
changeset
|
45 |
join('devtools', 'test', 'data'), |
97361ddaf342
fix include_dirs
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
264
diff
changeset
|
46 |
'skeleton'] |
0 | 47 |
|
48 |
||
49 |
entities_dir = 'entities' |
|
50 |
schema_dir = 'schemas' |
|
51 |
sobjects_dir = 'sobjects' |
|
52 |
server_migration_dir = join('misc', 'migration') |
|
53 |
data_dir = join('web', 'data') |
|
54 |
wdoc_dir = join('web', 'wdoc') |
|
55 |
wdocimages_dir = join(wdoc_dir, 'images') |
|
56 |
views_dir = join('web', 'views') |
|
57 |
i18n_dir = 'i18n' |
|
58 |
||
59 |
if environ.get('APYCOT_ROOT'): |
|
60 |
# --home install |
|
61 |
pydir = 'python' |
|
62 |
else: |
|
265
97361ddaf342
fix include_dirs
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
264
diff
changeset
|
63 |
pydir = join('python2.4', 'site-packages') |
264
6eb0725d509d
packaging fix: distribute skeleton
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
259
diff
changeset
|
64 |
|
0 | 65 |
try: |
66 |
data_files = [ |
|
67 |
# common data |
|
68 |
#[join('share', 'cubicweb', 'entities'), |
|
69 |
# [join(entities_dir, filename) for filename in listdir(entities_dir)]], |
|
70 |
# server data |
|
71 |
[join('share', 'cubicweb', 'schemas'), |
|
72 |
[join(schema_dir, filename) for filename in listdir(schema_dir)]], |
|
73 |
#[join('share', 'cubicweb', 'sobjects'), |
|
74 |
# [join(sobjects_dir, filename) for filename in listdir(sobjects_dir)]], |
|
75 |
[join('share', 'cubicweb', 'migration'), |
|
76 |
[join(server_migration_dir, filename) |
|
77 |
for filename in listdir(server_migration_dir)]], |
|
78 |
# web data |
|
79 |
[join('share', 'cubicweb', 'cubes', 'shared', 'data'), |
|
80 |
[join(data_dir, fname) for fname in listdir(data_dir) if not isdir(join(data_dir, fname))]], |
|
81 |
[join('share', 'cubicweb', 'cubes', 'shared', 'data', 'timeline'), |
|
82 |
[join(data_dir, 'timeline', fname) for fname in listdir(join(data_dir, 'timeline'))]], |
|
83 |
[join('share', 'cubicweb', 'cubes', 'shared', 'wdoc'), |
|
84 |
[join(wdoc_dir, fname) for fname in listdir(wdoc_dir) if not isdir(join(wdoc_dir, fname))]], |
|
85 |
[join('share', 'cubicweb', 'cubes', 'shared', 'wdoc', 'images'), |
|
86 |
[join(wdocimages_dir, fname) for fname in listdir(wdocimages_dir)]], |
|
87 |
# XXX: .pt install should be handled properly in a near future version |
|
88 |
[join('lib', pydir, 'cubicweb', 'web', 'views'), |
|
89 |
[join(views_dir, fname) for fname in listdir(views_dir) if fname.endswith('.pt')]], |
|
90 |
[join('share', 'cubicweb', 'cubes', 'shared', 'i18n'), |
|
91 |
[join(i18n_dir, fname) for fname in listdir(i18n_dir)]], |
|
264
6eb0725d509d
packaging fix: distribute skeleton
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
259
diff
changeset
|
92 |
# skeleton |
6eb0725d509d
packaging fix: distribute skeleton
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
259
diff
changeset
|
93 |
|
0 | 94 |
] |
95 |
except OSError: |
|
96 |
# we are in an installed directory, don't care about this |
|
97 |
pass |