The scripts in scripts/python are intended to be run from 'perf script' and the Python version used is dictated by how perf was built (PYTHON=). Also most distros follow pep-0394 which recommends that /usr/bin/python refer to Python2 and so may not exist on the system (if PYTHON=python3). - Remove the explicit shebang - Install the scripts as mode 644
Showing the changes to tools/perf/scripts/python (3 of 4 files). Show all
Unified · Split
| @@ -1,4 +1,3 @@ | |||
| 1 | #!/usr/bin/python2 | ||
| 2 | # SPDX-License-Identifier: GPL-2.0 | 1 | # SPDX-License-Identifier: GPL-2.0 |
| 3 | # exported-sql-viewer.py: view data from sql database | 2 | # exported-sql-viewer.py: view data from sql database |
| 4 | # Copyright (c) 2014-2018, Intel Corporation. | 3 | # Copyright (c) 2014-2018, Intel Corporation. |
| @@ -1,5 +1,3 @@ | |||
| 1 | #!/usr/bin/python | ||
| 2 | # | ||
| 3 | # Cpu task migration overview toy | 1 | # Cpu task migration overview toy |
| 4 | # | 2 | # |
| 5 | # Copyright (C) 2010 Frederic Weisbecker <fweisbec@gmail.com> | 3 | # Copyright (C) 2010 Frederic Weisbecker <fweisbec@gmail.com> |
| @@ -1,4 +1,3 @@ | |||
| 1 | #!/usr/bin/env python | ||
| 2 | # SPDX-License-Identifier: GPL-2.0 | 1 | # SPDX-License-Identifier: GPL-2.0 |
| 3 | 2 | ||
| 4 | data = {} | 3 | data = {} |