author | Aurelien Campeas <aurelien.campeas@logilab.fr> |
Thu, 09 Jul 2009 19:36:05 +0200 | |
branch | stable |
changeset 2363 | 1190b312bfe3 |
parent 1977 | 606923dff11b |
child 4212 | ab6573088b4a |
permissions | -rw-r--r-- |
0 | 1 |
#!/usr/bin/env python |
1977
606923dff11b
big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
1802
diff
changeset
|
2 |
""" |
606923dff11b
big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
1802
diff
changeset
|
3 |
|
606923dff11b
big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
1802
diff
changeset
|
4 |
:organization: Logilab |
606923dff11b
big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
1802
diff
changeset
|
5 |
:copyright: 2001-2009 LOGILAB S.A. (Paris, FRANCE), license is LGPL v2. |
606923dff11b
big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
1802
diff
changeset
|
6 |
:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr |
606923dff11b
big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
1802
diff
changeset
|
7 |
:license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses |
606923dff11b
big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
1802
diff
changeset
|
8 |
""" |
0 | 9 |
# pylint: disable-msg=W0404,W0622,W0704,W0613,W0152 |
1802
d628defebc17
delete-trailing-whitespace + some copyright update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
232
diff
changeset
|
10 |
# Copyright (c) 2003-2009 LOGILAB S.A. (Paris, FRANCE). |
0 | 11 |
# http://www.logilab.fr/ -- mailto:contact@logilab.fr |
12 |
# |
|
13 |
# This program is free software; you can redistribute it and/or modify it under |
|
14 |
# the terms of the GNU General Public License as published by the Free Software |
|
15 |
# Foundation; either version 2 of the License, or (at your option) any later |
|
16 |
# version. |
|
17 |
# |
|
18 |
# This program is distributed in the hope that it will be useful, but WITHOUT |
|
19 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
|
20 |
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. |
|
21 |
# |
|
22 |
# You should have received a copy of the GNU General Public License along with |
|
23 |
# this program; if not, write to the Free Software Foundation, Inc., |
|
24 |
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
25 |
""" Generic Setup script, takes package info from __pkginfo__.py file """ |
|
26 |
||
27 |
from distutils.core import setup |
|
28 |
||
29 |
# import required features |
|
30 |
from __pkginfo__ import distname, version, license, short_desc, long_desc, \ |
|
31 |
web, author, author_email |
|
232
f1f26070117d
cleanup skel packaging
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
139
diff
changeset
|
32 |
# import optional features |
0 | 33 |
try: |
34 |
from __pkginfo__ import data_files |
|
35 |
except ImportError: |
|
36 |
data_files = None |
|
232
f1f26070117d
cleanup skel packaging
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
139
diff
changeset
|
37 |
try: |
f1f26070117d
cleanup skel packaging
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
139
diff
changeset
|
38 |
from __pkginfo__ import include_dirs |
f1f26070117d
cleanup skel packaging
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
139
diff
changeset
|
39 |
except ImportError: |
f1f26070117d
cleanup skel packaging
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
139
diff
changeset
|
40 |
include_dirs = [] |
0 | 41 |
|
42 |
def install(**kwargs): |
|
43 |
"""setup entry point""" |
|
232
f1f26070117d
cleanup skel packaging
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
139
diff
changeset
|
44 |
#kwargs['distname'] = modname |
0 | 45 |
return setup(name=distname, |
46 |
version=version, |
|
139 | 47 |
license=license, |
0 | 48 |
description=short_desc, |
49 |
long_description=long_desc, |
|
50 |
author=author, |
|
51 |
author_email=author_email, |
|
52 |
url=web, |
|
53 |
data_files=data_files, |
|
54 |
**kwargs) |
|
1802
d628defebc17
delete-trailing-whitespace + some copyright update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
232
diff
changeset
|
55 |
|
0 | 56 |
if __name__ == '__main__' : |
57 |
install() |