|
Packit Service |
77e874 |
#!/usr/bin/env python
|
|
Packit Service |
77e874 |
|
|
Packit Service |
77e874 |
from distutils.core import setup
|
|
Packit Service |
77e874 |
from distutils.command import install as distutils_install
|
|
Packit Service |
77e874 |
from iotop.version import VERSION
|
|
Packit Service |
77e874 |
|
|
Packit Service |
77e874 |
# Dirty hack to make setup.py install the iotop script to sbin/ instead of bin/
|
|
Packit Service |
77e874 |
# while still honoring the choice of installing into local/ or not.
|
|
Packit Service |
77e874 |
if hasattr(distutils_install, 'INSTALL_SCHEMES'):
|
|
Packit Service |
85d936 |
for d in distutils_install.INSTALL_SCHEMES.values():
|
|
Packit Service |
77e874 |
if d.get('scripts', '').endswith('/bin'):
|
|
Packit Service |
77e874 |
d['scripts'] = d['scripts'][:-len('/bin')] + '/sbin'
|
|
Packit Service |
77e874 |
|
|
Packit Service |
77e874 |
setup(name='iotop',
|
|
Packit Service |
77e874 |
version=VERSION,
|
|
Packit Service |
77e874 |
description='Per process I/O bandwidth monitor',
|
|
Packit Service |
77e874 |
long_description=
|
|
Packit Service |
77e874 |
'''Iotop is a Python program with a top like UI used to show of behalf of which
|
|
Packit Service |
77e874 |
process is the I/O going on.''',
|
|
Packit Service |
77e874 |
author='Guillaume Chazarain',
|
|
Packit Service |
77e874 |
author_email='guichaz@gmail.com',
|
|
Packit Service |
77e874 |
url='http://guichaz.free.fr/iotop',
|
|
Packit Service |
77e874 |
scripts=['sbin/iotop'],
|
|
Packit Service |
77e874 |
data_files=[('share/man/man8', ['iotop.8'])],
|
|
Packit Service |
77e874 |
packages=['iotop'],
|
|
Packit Service |
77e874 |
license='GPL'
|
|
Packit Service |
77e874 |
)
|