From: Sitsofe Wheeler Date: Sun, 29 Oct 2017 08:05:47 +0000 (+0000) Subject: tools: use /usr/bin/python2.7 as the interpreter X-Git-Tag: fio-3.2~20^2~7 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=60023ade47e7817db1c18d9b7e511839de5c2c99;hp=a72f40bb129f99d5463383466a31d5ff6119aa96 tools: use /usr/bin/python2.7 as the interpreter Distros such as Fedora (https://fedoraproject.org/wiki/Packaging:Python#Multiple_Python_Runtimes ) are clamping down on python interpreter paths due to the desire to switch to python3 so /usr/bin/python or /usr/bin/env python are no longer liked. Unfortunately macOS doesn't ship a /usr/bin/python2 link so switch all python interpreter paths to /usr/bin/python2.7 as a compromise. Signed-off-by: Sitsofe Wheeler --- diff --git a/tools/fio_jsonplus_clat2csv b/tools/fio_jsonplus_clat2csv index 64fdc9f3..e63d6d8b 100755 --- a/tools/fio_jsonplus_clat2csv +++ b/tools/fio_jsonplus_clat2csv @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python2.7 # # fio_jsonplus_clat2csv # diff --git a/tools/fiologparser.py b/tools/fiologparser.py index 5a95009e..8549859f 100755 --- a/tools/fiologparser.py +++ b/tools/fiologparser.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python2.7 # # fiologparser.py # @@ -218,4 +218,3 @@ if __name__ == '__main__': print_all_stats(ctx, series) else: print_default(ctx, series) - diff --git a/tools/hist/fiologparser_hist.py b/tools/hist/fiologparser_hist.py index ad97a54d..2e05b92c 100755 --- a/tools/hist/fiologparser_hist.py +++ b/tools/hist/fiologparser_hist.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2.7 +#!/usr/bin/python2.7 """ Utility for converting *_clat_hist* files generated by fio into latency statistics. diff --git a/tools/hist/half-bins.py b/tools/hist/half-bins.py index d592af00..1bba8ff7 100755 --- a/tools/hist/half-bins.py +++ b/tools/hist/half-bins.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2.7 +#!/usr/bin/python2.7 """ Cut the number bins in half in fio histogram output. Example usage: $ half-bins.py -c 2 output_clat_hist.1.log > smaller_clat_hist.1.log @@ -35,4 +35,3 @@ if __name__ == '__main__': 'e.g. coarseness of 4 merges each 2^4 = 16 consecutive ' 'bins.') main(p.parse_args()) - diff --git a/tools/plot/fio2gnuplot b/tools/plot/fio2gnuplot index a703ae33..c96abe9a 100755 --- a/tools/plot/fio2gnuplot +++ b/tools/plot/fio2gnuplot @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/python2.7 # # Copyright (C) 2013 eNovance SAS # Author: Erwan Velu diff --git a/unit_tests/steadystate_tests.py b/unit_tests/steadystate_tests.py index d222840f..5a74f956 100755 --- a/unit_tests/steadystate_tests.py +++ b/unit_tests/steadystate_tests.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python2.7 # # steadystate_tests.py #