author | Sylvain Thénault <sylvain.thenault@logilab.fr> |
Wed, 31 Mar 2010 15:39:09 +0200 | |
changeset 5121 | a63d7886fcf5 |
parent 5048 | bf8a53a11b6d |
parent 5118 | 768beb8e15f1 |
child 5125 | eaec839ad3fe |
permissions | -rw-r--r-- |
0 | 1 |
# pylint: disable-msg=W0622,C0103 |
2 |
"""cubicweb global packaging information for the cubicweb knowledge management |
|
3 |
software |
|
5024
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
4 |
|
1977
606923dff11b
big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
1952
diff
changeset
|
5 |
:license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses |
0 | 6 |
""" |
7 |
||
5024
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
8 |
modname = distname = "cubicweb" |
0 | 9 |
|
5117 | 10 |
numversion = (3, 7, 3) |
0 | 11 |
version = '.'.join(str(num) for num in numversion) |
12 |
||
5024
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
13 |
description = "a repository of entities / relations for knowledge management" |
0 | 14 |
author = "Logilab" |
15 |
author_email = "contact@logilab.fr" |
|
858
e6ae125d5903
reorganize debian packages (Closes: #1168)
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
482
diff
changeset
|
16 |
web = 'http://www.cubicweb.org' |
e6ae125d5903
reorganize debian packages (Closes: #1168)
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
482
diff
changeset
|
17 |
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
|
18 |
license = 'LGPL' |
0 | 19 |
|
2419 | 20 |
classifiers = [ |
21 |
'Environment :: Web Environment', |
|
22 |
'Framework :: CubicWeb', |
|
23 |
'Programming Language :: Python', |
|
24 |
'Programming Language :: JavaScript', |
|
25 |
] |
|
26 |
||
5024
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
27 |
__depends__ = { |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
28 |
'logilab-common': '>= 0.49.0', |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
29 |
'logilab-mtconverter': '>= 0.6.0', |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
30 |
'rql': '>= 0.26.0', |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
31 |
'yams': '>= 0.28.1', |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
32 |
'docutils': '>= 0.6', |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
33 |
#gettext # for xgettext, msgcat, etc... |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
34 |
# web dependancies |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
35 |
'simplejson': '>= 2.0.9', |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
36 |
'lxml': '', |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
37 |
'Twisted': '', |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
38 |
# XXX graphviz |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
39 |
# server dependencies |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
40 |
'logilab-database': '', |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
41 |
'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
|
42 |
} |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
43 |
|
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
44 |
__recommends__ = { |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
45 |
'Pyro': '>= 3.9.1', |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
46 |
'PIL': '', # for captcha |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
47 |
'pycrypto': '', # for crypto extensions |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
48 |
'fyzz': '>= 0.1.0', # for sparql |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
49 |
'pysixt': '>= 0.1.0', # XXX for pdf export |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
50 |
'python-gettext': '>= 1.0', # XXX for pdf export |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
51 |
'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
|
52 |
#'Products.FCKeditor':'', |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
53 |
#'SimpleTAL':'>= 4.1.6', |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
54 |
} |
0 | 55 |
|
858
e6ae125d5903
reorganize debian packages (Closes: #1168)
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
482
diff
changeset
|
56 |
import sys |
0 | 57 |
from os import listdir, environ |
58 |
from os.path import join, isdir |
|
59 |
import glob |
|
60 |
||
61 |
scripts = [s for s in glob.glob(join('bin', 'cubicweb-*')) |
|
62 |
if not s.endswith('.bat')] |
|
265
97361ddaf342
fix include_dirs
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
264
diff
changeset
|
63 |
include_dirs = [join('test', 'data'), |
0 | 64 |
join('server', 'test', 'data'), |
5024
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
65 |
join('hooks', 'test', 'data'), |
0 | 66 |
join('web', 'test', 'data'), |
265
97361ddaf342
fix include_dirs
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
264
diff
changeset
|
67 |
join('devtools', 'test', 'data'), |
97361ddaf342
fix include_dirs
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
264
diff
changeset
|
68 |
'skeleton'] |
0 | 69 |
|
70 |
||
5024
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
71 |
_server_migration_dir = join('misc', 'migration') |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
72 |
_data_dir = join('web', 'data') |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
73 |
_wdoc_dir = join('web', 'wdoc') |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
74 |
_wdocimages_dir = join(_wdoc_dir, 'images') |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
75 |
_views_dir = join('web', 'views') |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
76 |
_i18n_dir = 'i18n' |
0 | 77 |
|
5024
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
78 |
_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
|
79 |
if '--home' in sys.argv: |
0 | 80 |
# --home install |
5024
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
81 |
pydir = 'python' + _pyversion |
0 | 82 |
else: |
5024
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
83 |
pydir = join('python' + _pyversion, 'site-packages') |
264
6eb0725d509d
packaging fix: distribute skeleton
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
259
diff
changeset
|
84 |
|
0 | 85 |
try: |
86 |
data_files = [ |
|
87 |
# server data |
|
88 |
[join('share', 'cubicweb', 'schemas'), |
|
5024
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
89 |
[join('schemas', filename) for filename in listdir('schemas')]], |
0 | 90 |
[join('share', 'cubicweb', 'migration'), |
5024
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
91 |
[join(_server_migration_dir, filename) |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
92 |
for filename in listdir(_server_migration_dir)]], |
0 | 93 |
# web data |
94 |
[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
|
95 |
[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
|
96 |
if not isdir(join(_data_dir, fname))]], |
0 | 97 |
[join('share', 'cubicweb', 'cubes', 'shared', 'data', 'timeline'), |
98 |
[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
|
99 |
[join('share', 'cubicweb', 'cubes', 'shared', 'data', 'images'), |
5118
768beb8e15f1
[distrib] fix pkginfo
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5117
diff
changeset
|
100 |
[join(data_dir, 'images', fname) for fname in listdir(join(data_dir, 'images'))]], |
0 | 101 |
[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
|
102 |
[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
|
103 |
if not isdir(join(_wdoc_dir, fname))]], |
0 | 104 |
[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
|
105 |
[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
|
106 |
[join('share', 'cubicweb', 'cubes', 'shared', 'i18n'), |
9e718abe3fde
add egg support with dependencies auto-installation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
4984
diff
changeset
|
107 |
[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
|
108 |
# XXX: drop .pt files |
0 | 109 |
[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
|
110 |
[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
|
111 |
if fname.endswith('.pt')]], |
264
6eb0725d509d
packaging fix: distribute skeleton
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
259
diff
changeset
|
112 |
# skeleton |
0 | 113 |
] |
114 |
except OSError: |
|
115 |
# we are in an installed directory, don't care about this |
|
116 |
pass |