aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/setup.py')
-rw-r--r--tools/perf/util/setup.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/util/setup.py b/tools/perf/util/setup.py
index af415febbc46..6891635b50c3 100644
--- a/tools/perf/util/setup.py
+++ b/tools/perf/util/setup.py
@@ -1,4 +1,4 @@
1#!/usr/bin/python2 1#!/usr/bin/python
2 2
3from os import getenv 3from os import getenv
4 4
@@ -35,11 +35,11 @@ build_tmp = getenv('PYTHON_EXTBUILD_TMP')
35libtraceevent = getenv('LIBTRACEEVENT') 35libtraceevent = getenv('LIBTRACEEVENT')
36libapikfs = getenv('LIBAPI') 36libapikfs = getenv('LIBAPI')
37 37
38ext_sources = [f.strip() for f in file('util/python-ext-sources') 38ext_sources = [f.strip() for f in open('util/python-ext-sources')
39 if len(f.strip()) > 0 and f[0] != '#'] 39 if len(f.strip()) > 0 and f[0] != '#']
40 40
41# use full paths with source files 41# use full paths with source files
42ext_sources = map(lambda x: '%s/%s' % (src_perf, x) , ext_sources) 42ext_sources = list(map(lambda x: '%s/%s' % (src_perf, x) , ext_sources))
43 43
44perf = Extension('perf', 44perf = Extension('perf',
45 sources = ext_sources, 45 sources = ext_sources,