forked from pykickstart/pykickstart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
37 lines (32 loc) · 1.64 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
from setuptools import setup
from setuptools.command.install_scripts import install_scripts as _install_scripts
import os
# This is required so that the scripts are detected by code coverage during testing, but are
# installed without their filename extensions
class install_scripts(_install_scripts):
def run(self):
_install_scripts.run(self)
for old in self.get_outputs():
new = os.path.splitext(old)[0]
# move_file doesn't have a way to tell it to overwrite, so remove
# the existing copy to accomplish the same thing.
if os.path.isfile(new) and os.path.exists(new):
os.unlink(new)
os.rename(old, new)
setup(cmdclass={"install_scripts": install_scripts},
name='pykickstart', version='3.44',
description='Python module for manipulating kickstart files',
author='Chris Lumens', author_email='clumens@redhat.com',
url='https://fedoraproject.org/wiki/pykickstart',
license='COPYING',
install_requires=['requests'],
# These are installed by install_scripts() without their filename extensions
scripts=['tools/ksvalidator.py', 'tools/ksflatten.py', 'tools/ksverdiff.py', 'tools/ksshell.py'],
packages=['pykickstart', 'pykickstart.commands', 'pykickstart.handlers'],
data_files=[('share/man/man1', ['docs/ksvalidator.1', 'docs/ksflatten.1', 'docs/ksverdiff.1',
'docs/ksshell.1'])],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License (GPL)",
"Operating System :: OS Independent",
])