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