Actually skip invalid lines in /proc/*/status
[iotop.git] / setup.py
blobe87bfaaffadd9136e295620fa8c49877094a1df9
1 #!/usr/bin/env python3
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.values():
11 if d.get('scripts', '').endswith('/bin'):
12 d['scripts'] = d['scripts'][:-len('/bin')] + '/sbin'
14 setup(name='iotop',
15 version=VERSION,
16 description='Per process I/O bandwidth monitor',
17 long_description='''Iotop is a Python program with a top like UI used to
18 show of behalf of which process is the I/O going on.''',
19 author='Guillaume Chazarain',
20 author_email='guichaz@gmail.com',
21 url='http://guichaz.free.fr/iotop',
22 scripts=['sbin/iotop'],
23 data_files=[('share/man/man8', ['iotop.8'])],
24 packages=['iotop'],
25 license='GPL'