Blame SOURCES/iotop-python3build.patch

72f31d
From 99c8d7cedce81f17b851954d94bfa73787300599 Mon Sep 17 00:00:00 2001
72f31d
From: Christophe Vu-Brugier <cvubrugier@fastmail.fm>
72f31d
Date: Fri, 17 Oct 2014 13:49:31 +0200
72f31d
Subject: [PATCH] Fix build error with Python 3 caused by itervalues() in
72f31d
 setup.py
72f31d
72f31d
The itervalues() method is not available in Python 3. As a
72f31d
consequence, this patch replaces the call to itervalues() in setup.py
72f31d
with a call to values() which works on both Python 2 and Python 3.
72f31d
72f31d
Signed-off-by: Christophe Vu-Brugier <cvubrugier@fastmail.fm>
72f31d
Signed-off-by: Paul Wise <pabs3@bonedaddy.net>
72f31d
---
72f31d
 setup.py | 2 +-
72f31d
 1 file changed, 1 insertion(+), 1 deletion(-)
72f31d
72f31d
diff --git a/setup.py b/setup.py
72f31d
index 7150102..9de6068 100755
72f31d
--- a/setup.py
72f31d
+++ b/setup.py
72f31d
@@ -7,7 +7,7 @@ from iotop.version import VERSION
72f31d
 # Dirty hack to make setup.py install the iotop script to sbin/ instead of bin/
72f31d
 # while still honoring the choice of installing into local/ or not.
72f31d
 if hasattr(distutils_install, 'INSTALL_SCHEMES'):
72f31d
-    for d in distutils_install.INSTALL_SCHEMES.itervalues():
72f31d
+    for d in distutils_install.INSTALL_SCHEMES.values():
72f31d
         if d.get('scripts', '').endswith('/bin'):
72f31d
             d['scripts'] = d['scripts'][:-len('/bin')] + '/sbin'
72f31d
72f31d
--
72f31d
2.4.10.GIT
72f31d