3 from distutils
.core
import setup
4 from distutils
.command
import install
as distutils_install
5 from iotop
.version
import VERSION
7 # Dirty hack to make setup.py install the iotop script to sbin/ instead of bin/
8 # while still honoring the choice of installing into local/ or not.
9 if hasattr(distutils_install
, 'INSTALL_SCHEMES'):
10 for d
in distutils_install
.INSTALL_SCHEMES
.itervalues():
11 if d
.get('scripts', '').endswith('/bin'):
12 d
['scripts'] = d
['scripts'][:-len('/bin')] + '/sbin'
16 description
='Per process I/O bandwidth monitor',
18 '''Iotop is a Python program with a top like UI used to show of behalf of which
19 process is the I/O going on.''',
20 author
='Guillaume Chazarain',
21 author_email
='guichaz@gmail.com',
22 url
='http://guichaz.free.fr/iotop',
23 scripts
=['sbin/iotop'],
24 data_files
=[('share/man/man8', ['iotop.8'])],