author | Alexandre Fayolle <alexandre.fayolle@logilab.fr> |
Thu, 15 Apr 2010 14:29:58 +0200 | |
branch | stable |
changeset 5280 | 7e13bb484a19 |
parent 5118 | 768beb8e15f1 |
child 5121 | a63d7886fcf5 |
child 5295 | 6d4964bb7f33 |
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 |
||
5117 | 10 |
numversion = (3, 7, 3) |
0 | 11 |
version = '.'.join(str(num) for num in numversion) |
12 |
||
3787
82bb2c7f083b
C - fix typo. make `lgp check` happy.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
3769
diff
changeset
|
13 |
license = 'LGPL' |
4212
ab6573088b4a
update copyright: welcome 2010
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
4201
diff
changeset
|
14 |
copyright = '''Copyright (c) 2003-2010 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' |
4833
41a78fb4107c
3.7 depends on python >= 2.5
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4733
diff
changeset
|
33 |
pyversions = ['2.5', '2.6'] |
0 | 34 |
|
2419 | 35 |
classifiers = [ |
36 |
'Environment :: Web Environment', |
|
37 |
'Framework :: CubicWeb', |
|
38 |
'Programming Language :: Python', |
|
39 |
'Programming Language :: JavaScript', |
|
40 |
] |
|
41 |
||
0 | 42 |
|
858
e6ae125d5903
reorganize debian packages (Closes: #1168)
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
482
diff
changeset
|
43 |
import sys |
0 | 44 |
from os import listdir, environ |
45 |
from os.path import join, isdir |
|
46 |
import glob |
|
47 |
||
48 |
scripts = [s for s in glob.glob(join('bin', 'cubicweb-*')) |
|
49 |
if not s.endswith('.bat')] |
|
265
97361ddaf342
fix include_dirs
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
264
diff
changeset
|
50 |
include_dirs = [join('test', 'data'), |
0 | 51 |
join('server', 'test', 'data'), |
52 |
join('web', 'test', 'data'), |
|
265
97361ddaf342
fix include_dirs
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
264
diff
changeset
|
53 |
join('devtools', 'test', 'data'), |
97361ddaf342
fix include_dirs
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
264
diff
changeset
|
54 |
'skeleton'] |
0 | 55 |
|
56 |
||
57 |
entities_dir = 'entities' |
|
58 |
schema_dir = 'schemas' |
|
59 |
sobjects_dir = 'sobjects' |
|
60 |
server_migration_dir = join('misc', 'migration') |
|
61 |
data_dir = join('web', 'data') |
|
62 |
wdoc_dir = join('web', 'wdoc') |
|
63 |
wdocimages_dir = join(wdoc_dir, 'images') |
|
64 |
views_dir = join('web', 'views') |
|
65 |
i18n_dir = 'i18n' |
|
66 |
||
67 |
if environ.get('APYCOT_ROOT'): |
|
68 |
# --home install |
|
69 |
pydir = 'python' |
|
70 |
else: |
|
858
e6ae125d5903
reorganize debian packages (Closes: #1168)
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
482
diff
changeset
|
71 |
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
|
72 |
pydir = join('python' + python_version, 'site-packages') |
264
6eb0725d509d
packaging fix: distribute skeleton
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
259
diff
changeset
|
73 |
|
0 | 74 |
try: |
75 |
data_files = [ |
|
76 |
# common data |
|
77 |
#[join('share', 'cubicweb', 'entities'), |
|
78 |
# [join(entities_dir, filename) for filename in listdir(entities_dir)]], |
|
79 |
# server data |
|
80 |
[join('share', 'cubicweb', 'schemas'), |
|
81 |
[join(schema_dir, filename) for filename in listdir(schema_dir)]], |
|
82 |
#[join('share', 'cubicweb', 'sobjects'), |
|
83 |
# [join(sobjects_dir, filename) for filename in listdir(sobjects_dir)]], |
|
84 |
[join('share', 'cubicweb', 'migration'), |
|
85 |
[join(server_migration_dir, filename) |
|
86 |
for filename in listdir(server_migration_dir)]], |
|
87 |
# web data |
|
88 |
[join('share', 'cubicweb', 'cubes', 'shared', 'data'), |
|
89 |
[join(data_dir, fname) for fname in listdir(data_dir) if not isdir(join(data_dir, fname))]], |
|
90 |
[join('share', 'cubicweb', 'cubes', 'shared', 'data', 'timeline'), |
|
91 |
[join(data_dir, 'timeline', fname) for fname in listdir(join(data_dir, 'timeline'))]], |
|
5110
e1f0fb044d94
[distribution] the web/data/images directory has to be handled in pkginfo
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5045
diff
changeset
|
92 |
[join('share', 'cubicweb', 'cubes', 'shared', 'data', 'images'), |
5118
768beb8e15f1
[distrib] fix pkginfo
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5117
diff
changeset
|
93 |
[join(data_dir, 'images', fname) for fname in listdir(join(data_dir, 'images'))]], |
0 | 94 |
[join('share', 'cubicweb', 'cubes', 'shared', 'wdoc'), |
95 |
[join(wdoc_dir, fname) for fname in listdir(wdoc_dir) if not isdir(join(wdoc_dir, fname))]], |
|
96 |
[join('share', 'cubicweb', 'cubes', 'shared', 'wdoc', 'images'), |
|
97 |
[join(wdocimages_dir, fname) for fname in listdir(wdocimages_dir)]], |
|
98 |
# XXX: .pt install should be handled properly in a near future version |
|
99 |
[join('lib', pydir, 'cubicweb', 'web', 'views'), |
|
100 |
[join(views_dir, fname) for fname in listdir(views_dir) if fname.endswith('.pt')]], |
|
101 |
[join('share', 'cubicweb', 'cubes', 'shared', 'i18n'), |
|
102 |
[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
|
103 |
# skeleton |
0 | 104 |
] |
105 |
except OSError: |
|
106 |
# we are in an installed directory, don't care about this |
|
107 |
pass |