author | Sylvain Thénault <sylvain.thenault@logilab.fr> |
Tue, 18 May 2010 15:06:09 +0200 | |
branch | stable |
changeset 5540 | ef2e37d34013 |
parent 5472 | fd6b136a8404 |
child 5545 | 25fd74c23f91 |
child 5553 | 646737f80c88 |
permissions | -rw-r--r-- |
0 | 1 |
# pylint: disable-msg=W0622,C0103 |
5421
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5295
diff
changeset
|
2 |
# copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5295
diff
changeset
|
3 |
# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5295
diff
changeset
|
4 |
# |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5295
diff
changeset
|
5 |
# This file is part of CubicWeb. |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5295
diff
changeset
|
6 |
# |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5295
diff
changeset
|
7 |
# CubicWeb is free software: you can redistribute it and/or modify it under the |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5295
diff
changeset
|
8 |
# terms of the GNU Lesser General Public License as published by the Free |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5295
diff
changeset
|
9 |
# Software Foundation, either version 2.1 of the License, or (at your option) |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5295
diff
changeset
|
10 |
# any later version. |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5295
diff
changeset
|
11 |
# |
5424
8ecbcbff9777
replace logilab-common by CubicWeb in disclaimer
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5421
diff
changeset
|
12 |
# CubicWeb is distributed in the hope that it will be useful, but WITHOUT |
5421
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5295
diff
changeset
|
13 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5295
diff
changeset
|
14 |
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5295
diff
changeset
|
15 |
# details. |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5295
diff
changeset
|
16 |
# |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5295
diff
changeset
|
17 |
# You should have received a copy of the GNU Lesser General Public License along |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5295
diff
changeset
|
18 |
# with CubicWeb. If not, see <http://www.gnu.org/licenses/>. |
0 | 19 |
"""cubicweb global packaging information for the cubicweb knowledge management |
20 |
software |
|
21 |
""" |
|
22 |
||
5024
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
23 |
modname = distname = "cubicweb" |
0 | 24 |
|
5540 | 25 |
numversion = (3, 8, 2) |
0 | 26 |
version = '.'.join(str(num) for num in numversion) |
27 |
||
5024
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
28 |
description = "a repository of entities / relations for knowledge management" |
0 | 29 |
author = "Logilab" |
30 |
author_email = "contact@logilab.fr" |
|
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' |
5024
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
33 |
license = 'LGPL' |
0 | 34 |
|
2419 | 35 |
classifiers = [ |
36 |
'Environment :: Web Environment', |
|
37 |
'Framework :: CubicWeb', |
|
38 |
'Programming Language :: Python', |
|
39 |
'Programming Language :: JavaScript', |
|
40 |
] |
|
41 |
||
5024
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
42 |
__depends__ = { |
5332
5a70a3c70b9d
[packaging] update lgc dependency
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5302
diff
changeset
|
43 |
'logilab-common': '>= 0.50.0', |
5024
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
44 |
'logilab-mtconverter': '>= 0.6.0', |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
45 |
'rql': '>= 0.26.0', |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
46 |
'yams': '>= 0.28.1', |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
47 |
'docutils': '>= 0.6', |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
48 |
#gettext # for xgettext, msgcat, etc... |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
49 |
# web dependancies |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
50 |
'simplejson': '>= 2.0.9', |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
51 |
'lxml': '', |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
52 |
'Twisted': '', |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
53 |
# XXX graphviz |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
54 |
# server dependencies |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
55 |
'logilab-database': '', |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
56 |
'pysqlite': '>= 2.5.5', # XXX install pysqlite2 |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
57 |
} |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
58 |
|
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
59 |
__recommends__ = { |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
60 |
'Pyro': '>= 3.9.1', |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
61 |
'PIL': '', # for captcha |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
62 |
'pycrypto': '', # for crypto extensions |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
63 |
'fyzz': '>= 0.1.0', # for sparql |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
64 |
'vobject': '>= 0.6.0', # for ical view |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
65 |
#'Products.FCKeditor':'', |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
66 |
#'SimpleTAL':'>= 4.1.6', |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
67 |
} |
0 | 68 |
|
858
e6ae125d5903
reorganize debian packages (Closes: #1168)
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
482
diff
changeset
|
69 |
import sys |
0 | 70 |
from os import listdir, environ |
71 |
from os.path import join, isdir |
|
72 |
import glob |
|
73 |
||
74 |
scripts = [s for s in glob.glob(join('bin', 'cubicweb-*')) |
|
75 |
if not s.endswith('.bat')] |
|
265
97361ddaf342
fix include_dirs
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
264
diff
changeset
|
76 |
include_dirs = [join('test', 'data'), |
0 | 77 |
join('server', 'test', 'data'), |
5024
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
78 |
join('hooks', 'test', 'data'), |
0 | 79 |
join('web', 'test', 'data'), |
265
97361ddaf342
fix include_dirs
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
264
diff
changeset
|
80 |
join('devtools', 'test', 'data'), |
5469
4746c157e5e4
[packaging] we should add schemas to include_dirs so sql extensions files are properly installed
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5439
diff
changeset
|
81 |
'schemas', 'skeleton'] |
0 | 82 |
|
83 |
||
5024
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
84 |
_server_migration_dir = join('misc', 'migration') |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
85 |
_data_dir = join('web', 'data') |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
86 |
_wdoc_dir = join('web', 'wdoc') |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
87 |
_wdocimages_dir = join(_wdoc_dir, 'images') |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
88 |
_views_dir = join('web', 'views') |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
89 |
_i18n_dir = 'i18n' |
0 | 90 |
|
5024
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
91 |
_pyversion = '.'.join(str(num) for num in sys.version_info[0:2]) |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
92 |
if '--home' in sys.argv: |
0 | 93 |
# --home install |
5024
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
94 |
pydir = 'python' + _pyversion |
0 | 95 |
else: |
5024
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
96 |
pydir = join('python' + _pyversion, 'site-packages') |
264
6eb0725d509d
packaging fix: distribute skeleton
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
259
diff
changeset
|
97 |
|
0 | 98 |
try: |
99 |
data_files = [ |
|
100 |
# server data |
|
101 |
[join('share', 'cubicweb', 'schemas'), |
|
5024
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
102 |
[join('schemas', filename) for filename in listdir('schemas')]], |
0 | 103 |
[join('share', 'cubicweb', 'migration'), |
5024
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
104 |
[join(_server_migration_dir, filename) |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
105 |
for filename in listdir(_server_migration_dir)]], |
0 | 106 |
# web data |
107 |
[join('share', 'cubicweb', 'cubes', 'shared', 'data'), |
|
5024
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
108 |
[join(_data_dir, fname) for fname in listdir(_data_dir) |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
109 |
if not isdir(join(_data_dir, fname))]], |
0 | 110 |
[join('share', 'cubicweb', 'cubes', 'shared', 'data', 'timeline'), |
5125
eaec839ad3fe
fix bad merge
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5121
diff
changeset
|
111 |
[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
|
112 |
[join('share', 'cubicweb', 'cubes', 'shared', 'data', 'images'), |
5125
eaec839ad3fe
fix bad merge
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5121
diff
changeset
|
113 |
[join(_data_dir, 'images', fname) for fname in listdir(join(_data_dir, 'images'))]], |
0 | 114 |
[join('share', 'cubicweb', 'cubes', 'shared', 'wdoc'), |
5024
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
115 |
[join(_wdoc_dir, fname) for fname in listdir(_wdoc_dir) |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
116 |
if not isdir(join(_wdoc_dir, fname))]], |
0 | 117 |
[join('share', 'cubicweb', 'cubes', 'shared', 'wdoc', 'images'), |
5024
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
118 |
[join(_wdocimages_dir, fname) for fname in listdir(_wdocimages_dir)]], |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
119 |
[join('share', 'cubicweb', 'cubes', 'shared', 'i18n'), |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
120 |
[join(_i18n_dir, fname) for fname in listdir(_i18n_dir)]], |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
121 |
# XXX: drop .pt files |
0 | 122 |
[join('lib', pydir, 'cubicweb', 'web', 'views'), |
5024
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
123 |
[join(_views_dir, fname) for fname in listdir(_views_dir) |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
124 |
if fname.endswith('.pt')]], |
264
6eb0725d509d
packaging fix: distribute skeleton
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
259
diff
changeset
|
125 |
# skeleton |
0 | 126 |
] |
127 |
except OSError: |
|
128 |
# we are in an installed directory, don't care about this |
|
129 |
pass |