Fix build error with Python 3 caused by itervalues() in setup.py
[iotop.git] / setup.py
blob9de60687f440b7f9ba4c9d2fc4e63552e4efd96d
1 #!/usr/bin/env python
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'