]> git.pld-linux.org Git - packages/iotop.git/blob - python3.patch
switch to python3; rel 2
[packages/iotop.git] / python3.patch
1 From 99c8d7cedce81f17b851954d94bfa73787300599 Mon Sep 17 00:00:00 2001
2 From: Christophe Vu-Brugier <cvubrugier@fastmail.fm>
3 Date: Fri, 17 Oct 2014 13:49:31 +0200
4 Subject: [PATCH] Fix build error with Python 3 caused by itervalues() in
5  setup.py
6
7 The itervalues() method is not available in Python 3. As a
8 consequence, this patch replaces the call to itervalues() in setup.py
9 with a call to values() which works on both Python 2 and Python 3.
10
11 Signed-off-by: Christophe Vu-Brugier <cvubrugier@fastmail.fm>
12 Signed-off-by: Paul Wise <pabs3@bonedaddy.net>
13 ---
14  setup.py | 2 +-
15  1 file changed, 1 insertion(+), 1 deletion(-)
16
17 diff --git a/setup.py b/setup.py
18 index 7150102..9de6068 100755
19 --- a/setup.py
20 +++ b/setup.py
21 @@ -7,7 +7,7 @@ from iotop.version import VERSION
22  # Dirty hack to make setup.py install the iotop script to sbin/ instead of bin/
23  # while still honoring the choice of installing into local/ or not.
24  if hasattr(distutils_install, 'INSTALL_SCHEMES'):
25 -    for d in distutils_install.INSTALL_SCHEMES.itervalues():
26 +    for d in distutils_install.INSTALL_SCHEMES.values():
27          if d.get('scripts', '').endswith('/bin'):
28              d['scripts'] = d['scripts'][:-len('/bin')] + '/sbin'
29  
30 -- 
31 2.11.4.GIT
32
This page took 0.058132 seconds and 3 git commands to generate.