-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
executable file
·63 lines (53 loc) · 1.82 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Copyright(C) 2008,2013 Eric Leblond
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, version 3 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
"""
import sys
if "--setuptools" in sys.argv:
sys.argv.remove("--setuptools")
from setuptools import setup
use_setuptools = True
else:
from distutils.core import setup
use_setuptools = False
REQUIRES = ("")
from nf3d.infos import VERSION, DESCRIPTION, KEYWORDS
CLASSIFIERS = [
"Development Status :: 4 - Beta",
"Natural Language :: English",
"Environment :: Desktop",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: GNU General Public License (GPL)",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Topic :: System :: Monitoring"]
option = {}
if use_setuptools:
option["zip_safe"] = True
option["install_requires"] = REQUIRES
setup(
name='nf3d',
version=VERSION,
license='GPLv3',
description=DESCRIPTION,
classifiers=CLASSIFIERS,
url='https://home.regit.org/software/nf3d/',
author="Eric Leblond",
author_email="eric@regit.org",
keywords=KEYWORDS,
packages=['nf3d'],
package_dir={'nf3d':'nf3d'},
package_data={'nf3d':['nf3dspec.conf']},
scripts=['nf3d/nf3d'],
**option)