iotop: switch to python3.
This commit is contained in:
parent
d4e6c49808
commit
c37116f63c
|
@ -0,0 +1,20 @@
|
|||
--- setup.py.orig
|
||||
+++ setup.py
|
||||
@@ -1,16 +1,9 @@
|
||||
-#!/usr/bin/env python
|
||||
+#!/usr/bin/env python3
|
||||
|
||||
from distutils.core import setup
|
||||
from distutils.command import install as distutils_install
|
||||
from iotop.version import VERSION
|
||||
|
||||
-# Dirty hack to make setup.py install the iotop script to sbin/ instead of bin/
|
||||
-# while still honoring the choice of installing into local/ or not.
|
||||
-if hasattr(distutils_install, 'INSTALL_SCHEMES'):
|
||||
- for d in distutils_install.INSTALL_SCHEMES.itervalues():
|
||||
- if d.get('scripts', '').endswith('/bin'):
|
||||
- d['scripts'] = d['scripts'][:-len('/bin')] + '/sbin'
|
||||
-
|
||||
setup(name='iotop',
|
||||
version=VERSION,
|
||||
description='Per process I/O bandwidth monitor',
|
|
@ -1,10 +1,10 @@
|
|||
# Template file for 'iotop'
|
||||
pkgname=iotop
|
||||
version=0.6
|
||||
revision=4
|
||||
noarch="yes"
|
||||
build_style=python2-module
|
||||
hostmakedepends="python"
|
||||
revision=5
|
||||
noarch=yes
|
||||
build_style=python3-module
|
||||
hostmakedepends="python3"
|
||||
depends="${hostmakedepends}"
|
||||
pycompile_module="iotop"
|
||||
short_desc="View I/O usage of processes"
|
||||
|
@ -15,6 +15,5 @@ distfiles="http://guichaz.free.fr/iotop/files/iotop-${version}.tar.bz2"
|
|||
checksum=3adea2a24eda49bbbaeb4e6ed2042355b441dbd7161e883067a02bfc8dcef75b
|
||||
|
||||
post_install() {
|
||||
mv ${DESTDIR}/usr/sbin ${DESTDIR}/usr/bin
|
||||
chmod 644 ${DESTDIR}/usr/share/man/man8/iotop.8
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue