File: setup.py

package info (click to toggle)
nufw 2.4.3-3.1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 5,784 kB
  • ctags: 4,292
  • sloc: ansic: 32,174; sh: 10,146; python: 4,176; perl: 630; makefile: 610; lex: 176; php: 168; yacc: 117; xml: 34
file content (40 lines) | stat: -rwxr-xr-x 1,163 bytes parent folder | download | duplicates (4)
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
#!/usr/bin/python
from imp import load_source
from os import path
import sys

if "--setuptools" in sys.argv:
    sys.argv.remove("--setuptools")
    from setuptools import setup
else:
    from distutils.core import setup

CLASSIFIERS = [
    'Intended Audience :: Developers',
    'Development Status :: 5 - Production/Stable',
    'License :: OSI Approved :: GNU General Public License (GPL)',
    'Operating System :: OS Independent',
    'Natural Language :: English',
    'Programming Language :: Python',
]

def main():
    nuclient = load_source("version", path.join("nuclient", "version.py"))
    install_options = {
        "name": "nuclient",
        "version": nuclient.VERSION,
        "url": nuclient.WEBSITE,
        "download_url": nuclient.WEBSITE,
        "author": "Victor Stinner",
        "description": "Python binding of libnuclient library, object oriented",
        "long_description": open('README').read(),
        "classifiers": CLASSIFIERS,
        "license": nuclient.LICENSE,
        "packages": ["nuclient"],
        "package_dir": {"nuclient": "nuclient"},
    }
    setup(**install_options)

if __name__ == "__main__":
    main()