author | Sylvain Thénault <sylvain.thenault@logilab.fr> |
Mon, 18 May 2009 18:42:12 +0200 | |
branch | stable |
changeset 1847 | c5714f07f869 |
parent 1477 | b056a49c16dc |
child 1924 | dc903af1a34e |
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 |
||
1398
5fe84a5f7035
rename internal entity types to have CW prefix instead of E
sylvain.thenault@logilab.fr
parents:
1256
diff
changeset
|
9 |
numversion = (3, 2, 0) |
0 | 10 |
version = '.'.join(str(num) for num in numversion) |
11 |
||
1030
2ead2111cfab
update license, specify which the version of LGPL under which the code is provided
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
1017
diff
changeset
|
12 |
license = 'LGPL v2' |
858
e6ae125d5903
reorganize debian packages (Closes: #1168)
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
482
diff
changeset
|
13 |
copyright = '''Copyright (c) 2003-2009 LOGILAB S.A. (Paris, FRANCE). |
0 | 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 |
||
858
e6ae125d5903
reorganize debian packages (Closes: #1168)
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
482
diff
changeset
|
30 |
web = 'http://www.cubicweb.org' |
e6ae125d5903
reorganize debian packages (Closes: #1168)
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
482
diff
changeset
|
31 |
ftp = 'ftp://ftp.logilab.org/pub/cubicweb' |
e6ae125d5903
reorganize debian packages (Closes: #1168)
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
482
diff
changeset
|
32 |
pyversions = ['2.4', '2.5'] |
0 | 33 |
|
34 |
||
858
e6ae125d5903
reorganize debian packages (Closes: #1168)
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
482
diff
changeset
|
35 |
import sys |
0 | 36 |
from os import listdir, environ |
37 |
from os.path import join, isdir |
|
38 |
import glob |
|
39 |
||
40 |
scripts = [s for s in glob.glob(join('bin', 'cubicweb-*')) |
|
41 |
if not s.endswith('.bat')] |
|
265
97361ddaf342
fix include_dirs
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
264
diff
changeset
|
42 |
include_dirs = [join('test', 'data'), |
97361ddaf342
fix include_dirs
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
264
diff
changeset
|
43 |
join('common', 'test', 'data'), |
0 | 44 |
join('server', 'test', 'data'), |
45 |
join('web', 'test', 'data'), |
|
265
97361ddaf342
fix include_dirs
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
264
diff
changeset
|
46 |
join('devtools', 'test', 'data'), |
97361ddaf342
fix include_dirs
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
264
diff
changeset
|
47 |
'skeleton'] |
0 | 48 |
|
49 |
||
50 |
entities_dir = 'entities' |
|
51 |
schema_dir = 'schemas' |
|
52 |
sobjects_dir = 'sobjects' |
|
53 |
server_migration_dir = join('misc', 'migration') |
|
54 |
data_dir = join('web', 'data') |
|
55 |
wdoc_dir = join('web', 'wdoc') |
|
56 |
wdocimages_dir = join(wdoc_dir, 'images') |
|
57 |
views_dir = join('web', 'views') |
|
58 |
i18n_dir = 'i18n' |
|
59 |
||
60 |
if environ.get('APYCOT_ROOT'): |
|
61 |
# --home install |
|
62 |
pydir = 'python' |
|
63 |
else: |
|
858
e6ae125d5903
reorganize debian packages (Closes: #1168)
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
482
diff
changeset
|
64 |
python_version = '.'.join(str(num) for num in sys.version_info[0:2]) |
e6ae125d5903
reorganize debian packages (Closes: #1168)
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
482
diff
changeset
|
65 |
pydir = join('python' + python_version, 'site-packages') |
264
6eb0725d509d
packaging fix: distribute skeleton
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
259
diff
changeset
|
66 |
|
0 | 67 |
try: |
68 |
data_files = [ |
|
69 |
# common data |
|
70 |
#[join('share', 'cubicweb', 'entities'), |
|
71 |
# [join(entities_dir, filename) for filename in listdir(entities_dir)]], |
|
72 |
# server data |
|
73 |
[join('share', 'cubicweb', 'schemas'), |
|
74 |
[join(schema_dir, filename) for filename in listdir(schema_dir)]], |
|
75 |
#[join('share', 'cubicweb', 'sobjects'), |
|
76 |
# [join(sobjects_dir, filename) for filename in listdir(sobjects_dir)]], |
|
77 |
[join('share', 'cubicweb', 'migration'), |
|
78 |
[join(server_migration_dir, filename) |
|
79 |
for filename in listdir(server_migration_dir)]], |
|
80 |
# web data |
|
81 |
[join('share', 'cubicweb', 'cubes', 'shared', 'data'), |
|
82 |
[join(data_dir, fname) for fname in listdir(data_dir) if not isdir(join(data_dir, fname))]], |
|
83 |
[join('share', 'cubicweb', 'cubes', 'shared', 'data', 'timeline'), |
|
84 |
[join(data_dir, 'timeline', fname) for fname in listdir(join(data_dir, 'timeline'))]], |
|
85 |
[join('share', 'cubicweb', 'cubes', 'shared', 'wdoc'), |
|
86 |
[join(wdoc_dir, fname) for fname in listdir(wdoc_dir) if not isdir(join(wdoc_dir, fname))]], |
|
87 |
[join('share', 'cubicweb', 'cubes', 'shared', 'wdoc', 'images'), |
|
88 |
[join(wdocimages_dir, fname) for fname in listdir(wdocimages_dir)]], |
|
89 |
# XXX: .pt install should be handled properly in a near future version |
|
90 |
[join('lib', pydir, 'cubicweb', 'web', 'views'), |
|
91 |
[join(views_dir, fname) for fname in listdir(views_dir) if fname.endswith('.pt')]], |
|
92 |
[join('share', 'cubicweb', 'cubes', 'shared', 'i18n'), |
|
93 |
[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
|
94 |
# skeleton |
0 | 95 |
] |
96 |
except OSError: |
|
97 |
# we are in an installed directory, don't care about this |
|
98 |
pass |