diff options
Diffstat (limited to 'tools/perf/util/setup.py')
| -rw-r--r-- | tools/perf/util/setup.py | 6 |
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 | ||
| 3 | from os import getenv | 3 | from os import getenv |
| 4 | 4 | ||
| @@ -35,11 +35,11 @@ build_tmp = getenv('PYTHON_EXTBUILD_TMP') | |||
| 35 | libtraceevent = getenv('LIBTRACEEVENT') | 35 | libtraceevent = getenv('LIBTRACEEVENT') |
| 36 | libapikfs = getenv('LIBAPI') | 36 | libapikfs = getenv('LIBAPI') |
| 37 | 37 | ||
| 38 | ext_sources = [f.strip() for f in file('util/python-ext-sources') | 38 | ext_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 |
| 42 | ext_sources = map(lambda x: '%s/%s' % (src_perf, x) , ext_sources) | 42 | ext_sources = list(map(lambda x: '%s/%s' % (src_perf, x) , ext_sources)) |
| 43 | 43 | ||
| 44 | perf = Extension('perf', | 44 | perf = Extension('perf', |
| 45 | sources = ext_sources, | 45 | sources = ext_sources, |
