data.py get_cmdline: use errors=replace for unicode errors
[iotop.git] / setup.py
blob46fb9b3af2205c636cd49f04e50d6ea1a3ff6f2b
1 #!/usr/bin/env python3
3 from distutils.core import setup, Extension
4 from distutils.command import install as distutils_install
5 from iotop.version import VERSION
7 _ioprio = Extension('iotop._ioprio', sources = ['iotop/_ioprio.c'])
9 # Dirty hack to make setup.py install the iotop script to sbin/ instead of bin/
10 # while still honoring the choice of installing into local/ or not.
11 if hasattr(distutils_install, 'INSTALL_SCHEMES'):
12 for d in distutils_install.INSTALL_SCHEMES.values():
13 if d.get('scripts', '').endswith('/bin'):
14 d['scripts'] = d['scripts'][:-len('/bin')] + '/sbin'
16 setup(name='iotop',
17 version=VERSION,
18 description='Per process I/O bandwidth monitor',
19 long_description='''Iotop is a Python program with a top like UI used to
20 show of behalf of which process is the I/O going on.''',
21 author='Guillaume Chazarain',
22 author_email='guichaz@gmail.com',
23 url='http://guichaz.free.fr/iotop/',
24 scripts=['sbin/iotop'],
25 data_files=[('share/man/man8', ['iotop.8'])],
26 packages=['iotop'],
27 ext_modules = [_ioprio],
28 license='GPL'