xref: /OK3568_Linux_fs/buildroot/package/iotop/0001-Fix-build-error-with-Python-3.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunStatus: upstream
2*4882a593Smuzhiyunhttp://repo.or.cz/w/iotop.git/commit/99c8d7cedce81f17b851954d94bfa73787300599
3*4882a593Smuzhiyun
4*4882a593SmuzhiyunSigned-off-by: Christophe Vu-Brugier <cvubrugier@fastmail.fm>
5*4882a593Smuzhiyun
6*4882a593SmuzhiyunFrom 99c8d7cedce81f17b851954d94bfa73787300599 Mon Sep 17 00:00:00 2001
7*4882a593SmuzhiyunFrom: Christophe Vu-Brugier <cvubrugier@fastmail.fm>
8*4882a593SmuzhiyunDate: Fri, 17 Oct 2014 13:49:31 +0200
9*4882a593SmuzhiyunSubject: [PATCH] Fix build error with Python 3 caused by itervalues() in
10*4882a593Smuzhiyun setup.py
11*4882a593Smuzhiyun
12*4882a593SmuzhiyunThe itervalues() method is not available in Python 3. As a
13*4882a593Smuzhiyunconsequence, this patch replaces the call to itervalues() in setup.py
14*4882a593Smuzhiyunwith a call to values() which works on both Python 2 and Python 3.
15*4882a593Smuzhiyun
16*4882a593SmuzhiyunSigned-off-by: Christophe Vu-Brugier <cvubrugier@fastmail.fm>
17*4882a593SmuzhiyunSigned-off-by: Paul Wise <pabs3@bonedaddy.net>
18*4882a593Smuzhiyun---
19*4882a593Smuzhiyun setup.py | 2 +-
20*4882a593Smuzhiyun 1 file changed, 1 insertion(+), 1 deletion(-)
21*4882a593Smuzhiyun
22*4882a593Smuzhiyundiff --git a/setup.py b/setup.py
23*4882a593Smuzhiyunindex 7150102..9de6068 100755
24*4882a593Smuzhiyun--- a/setup.py
25*4882a593Smuzhiyun+++ b/setup.py
26*4882a593Smuzhiyun@@ -7,7 +7,7 @@ from iotop.version import VERSION
27*4882a593Smuzhiyun # Dirty hack to make setup.py install the iotop script to sbin/ instead of bin/
28*4882a593Smuzhiyun # while still honoring the choice of installing into local/ or not.
29*4882a593Smuzhiyun if hasattr(distutils_install, 'INSTALL_SCHEMES'):
30*4882a593Smuzhiyun-    for d in distutils_install.INSTALL_SCHEMES.itervalues():
31*4882a593Smuzhiyun+    for d in distutils_install.INSTALL_SCHEMES.values():
32*4882a593Smuzhiyun         if d.get('scripts', '').endswith('/bin'):
33*4882a593Smuzhiyun             d['scripts'] = d['scripts'][:-len('/bin')] + '/sbin'
34*4882a593Smuzhiyun
35*4882a593Smuzhiyun--
36*4882a593Smuzhiyun2.1.4
37*4882a593Smuzhiyun
38