author | Adrien Di Mascio <Adrien.DiMascio@logilab.fr> |
Mon, 29 Jun 2009 16:04:21 +0200 | |
branch | stable |
changeset 2191 | 1f0fde12e35b |
parent 2163 | f12373e04961 |
child 2285 | 1cf9e44e2f1f |
permissions | -rw-r--r-- |
0 | 1 |
# pylint: disable-msg=W0622,C0103 |
2 |
"""cubicweb global packaging information for the cubicweb knowledge management |
|
3 |
software |
|
1977
606923dff11b
big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
1952
diff
changeset
|
4 |
:license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses |
0 | 5 |
""" |
6 |
||
7 |
distname = "cubicweb" |
|
8 |
modname = "cubicweb" |
|
9 |
||
2163 | 10 |
numversion = (3, 3, 2) |
0 | 11 |
version = '.'.join(str(num) for num in numversion) |
12 |
||
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
|
13 |
license = 'LGPL v2' |
858
e6ae125d5903
reorganize debian packages (Closes: #1168)
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
482
diff
changeset
|
14 |
copyright = '''Copyright (c) 2003-2009 LOGILAB S.A. (Paris, FRANCE). |
0 | 15 |
http://www.logilab.fr/ -- mailto:contact@logilab.fr''' |
16 |
||
17 |
author = "Logilab" |
|
18 |
author_email = "contact@logilab.fr" |
|
19 |
||
20 |
short_desc = "a repository of entities / relations for knowledge management" |
|
21 |
long_desc = """CubicWeb is a entities / relations based knowledge management system |
|
22 |
developped at Logilab. |
|
23 |
||
24 |
This package contains: |
|
25 |
* a repository server |
|
26 |
* a RQL command line client to the repository |
|
27 |
* an adaptative modpython interface to the server |
|
28 |
* a bunch of other management tools |
|
29 |
""" |
|
30 |
||
858
e6ae125d5903
reorganize debian packages (Closes: #1168)
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
482
diff
changeset
|
31 |
web = 'http://www.cubicweb.org' |
e6ae125d5903
reorganize debian packages (Closes: #1168)
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
482
diff
changeset
|
32 |
ftp = 'ftp://ftp.logilab.org/pub/cubicweb' |
e6ae125d5903
reorganize debian packages (Closes: #1168)
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
482
diff
changeset
|
33 |
pyversions = ['2.4', '2.5'] |
0 | 34 |
|
35 |
||
858
e6ae125d5903
reorganize debian packages (Closes: #1168)
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
482
diff
changeset
|
36 |
import sys |
0 | 37 |
from os import listdir, environ |
38 |
from os.path import join, isdir |
|
39 |
import glob |
|
40 |
||
41 |
scripts = [s for s in glob.glob(join('bin', 'cubicweb-*')) |
|
42 |
if not s.endswith('.bat')] |
|
265
97361ddaf342
fix include_dirs
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
264
diff
changeset
|
43 |
include_dirs = [join('test', 'data'), |
97361ddaf342
fix include_dirs
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
264
diff
changeset
|
44 |
join('common', 'test', 'data'), |
0 | 45 |
join('server', 'test', 'data'), |
46 |
join('web', 'test', 'data'), |
|
265
97361ddaf342
fix include_dirs
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
264
diff
changeset
|
47 |
join('devtools', 'test', 'data'), |
97361ddaf342
fix include_dirs
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
264
diff
changeset
|
48 |
'skeleton'] |
0 | 49 |
|
50 |
||
51 |
entities_dir = 'entities' |
|
52 |
schema_dir = 'schemas' |
|
53 |
sobjects_dir = 'sobjects' |
|
54 |
server_migration_dir = join('misc', 'migration') |
|
55 |
data_dir = join('web', 'data') |
|
56 |
wdoc_dir = join('web', 'wdoc') |
|
57 |
wdocimages_dir = join(wdoc_dir, 'images') |
|
58 |
views_dir = join('web', 'views') |
|
59 |
i18n_dir = 'i18n' |
|
60 |
||
61 |
if environ.get('APYCOT_ROOT'): |
|
62 |
# --home install |
|
63 |
pydir = 'python' |
|
64 |
else: |
|
858
e6ae125d5903
reorganize debian packages (Closes: #1168)
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
482
diff
changeset
|
65 |
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
|
66 |
pydir = join('python' + python_version, 'site-packages') |
264
6eb0725d509d
packaging fix: distribute skeleton
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
259
diff
changeset
|
67 |
|
0 | 68 |
try: |
69 |
data_files = [ |
|
70 |
# common data |
|
71 |
#[join('share', 'cubicweb', 'entities'), |
|
72 |
# [join(entities_dir, filename) for filename in listdir(entities_dir)]], |
|
73 |
# server data |
|
74 |
[join('share', 'cubicweb', 'schemas'), |
|
75 |
[join(schema_dir, filename) for filename in listdir(schema_dir)]], |
|
76 |
#[join('share', 'cubicweb', 'sobjects'), |
|
77 |
# [join(sobjects_dir, filename) for filename in listdir(sobjects_dir)]], |
|
78 |
[join('share', 'cubicweb', 'migration'), |
|
79 |
[join(server_migration_dir, filename) |
|
80 |
for filename in listdir(server_migration_dir)]], |
|
81 |
# web data |
|
82 |
[join('share', 'cubicweb', 'cubes', 'shared', 'data'), |
|
83 |
[join(data_dir, fname) for fname in listdir(data_dir) if not isdir(join(data_dir, fname))]], |
|
84 |
[join('share', 'cubicweb', 'cubes', 'shared', 'data', 'timeline'), |
|
85 |
[join(data_dir, 'timeline', fname) for fname in listdir(join(data_dir, 'timeline'))]], |
|
86 |
[join('share', 'cubicweb', 'cubes', 'shared', 'wdoc'), |
|
87 |
[join(wdoc_dir, fname) for fname in listdir(wdoc_dir) if not isdir(join(wdoc_dir, fname))]], |
|
88 |
[join('share', 'cubicweb', 'cubes', 'shared', 'wdoc', 'images'), |
|
89 |
[join(wdocimages_dir, fname) for fname in listdir(wdocimages_dir)]], |
|
90 |
# XXX: .pt install should be handled properly in a near future version |
|
91 |
[join('lib', pydir, 'cubicweb', 'web', 'views'), |
|
92 |
[join(views_dir, fname) for fname in listdir(views_dir) if fname.endswith('.pt')]], |
|
93 |
[join('share', 'cubicweb', 'cubes', 'shared', 'i18n'), |
|
94 |
[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
|
95 |
# skeleton |
0 | 96 |
] |
97 |
except OSError: |
|
98 |
# we are in an installed directory, don't care about this |
|
99 |
pass |