File: setup.py

package info (click to toggle)
nfstest 3.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,580 kB
  • sloc: python: 24,102; makefile: 3
file content (58 lines) | stat: -rw-r--r-- 2,089 bytes parent folder | download
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
#!/usr/bin/env python3
#===============================================================================
# Copyright 2012 NetApp, Inc. All Rights Reserved,
# contribution by Jorge Mora <mora@netapp.com>
#
# 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; either version 2 of the License, or (at your option) any later
# version.
#
# 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.
#===============================================================================
#
# To create man pages:
# $ python setup.py build
#
# To install, run as root:
# $ python setup.py install
#
# To create an rpm (need to create the man pages first):
# $ python setup.py build
# $ python setup.py bdist_rpm --release p2.6
#
import os
import nfstest_config as c
from tools import create_manpage
from distutils.core import setup
from distutils.command.build import build

class Build(build):
    def run(self):
        create_manpage.run()
        build.run(self)

setup(
    name             = c.NFSTEST_PACKAGE,
    version          = c.NFSTEST_VERSION,
    description      = c.NFSTEST_SUMMARY,
    long_description = c.NFSTEST_DESCRIPTION,
    author           = c.NFSTEST_AUTHOR,
    author_email     = c.NFSTEST_AUTHOR_EMAIL,
    maintainer       = c.NFSTEST_MAINTAINER,
    maintainer_email = c.NFSTEST_MAINTAINER_EMAIL,
    license          = c.NFSTEST_LICENSE,
    url              = c.NFSTEST_URL,
    download_url     = c.NFSTEST_DL_URL,
    py_modules       = c.NFSTEST_MODULES,
    packages         = c.NFSTEST_PACKAGES,
    scripts          = c.NFSTEST_SCRIPTS,
    cmdclass = {'build': Build},
    data_files = [
        # Man pages for scripts
        (os.path.join(c.NFSTEST_USRMAN, 'man1'), c.NFSTEST_MAN1),
        (os.path.join(c.NFSTEST_USRMAN, 'man3'), c.NFSTEST_MAN3),
    ],
)