tools: use /usr/bin/python2.7 as the interpreter
authorSitsofe Wheeler <sitsofe@yahoo.com>
Sun, 29 Oct 2017 08:05:47 +0000 (08:05 +0000)
committerSitsofe Wheeler <sitsofe@yahoo.com>
Sun, 29 Oct 2017 19:22:25 +0000 (19:22 +0000)
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 <sitsofe@yahoo.com>
tools/fio_jsonplus_clat2csv
tools/fiologparser.py
tools/hist/fiologparser_hist.py
tools/hist/half-bins.py
tools/plot/fio2gnuplot
unit_tests/steadystate_tests.py

index 64fdc9f3a00b187605c5c02db12391c4bf1d5291..e63d6d8bdfab284dbe0d9325789f33651745ea38 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2.7
 #
 # fio_jsonplus_clat2csv
 #
index 5a95009e4c1208a5c3a3a0d1ecdd0a7dc170023b..8549859fbbffef4d29087d3786e87d50f3d6ad1d 100755 (executable)
@@ -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)
-
index ad97a54d3ab001912e5b197dc68004d9151ac79e..2e05b92ccbd09f2cd23e0cbba3b33c59ad4fca3a 100755 (executable)
@@ -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.
     
index d592af00be1075b5cc5cc545275edae41ec7a8f8..1bba8ff74802dbe8cf93cef46c77ff352b358243 100755 (executable)
@@ -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())
-
index a703ae337420ce2ad6c221885a88445a1c20f3cf..c96abe9a18b356186af02478a924f59c725e00f7 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python2.7
 #
 #  Copyright (C) 2013 eNovance SAS <licensing@enovance.com>
 #  Author: Erwan Velu  <erwan@enovance.com>
index d222840faf6766ea41a98aa0f011c8995b02350f..5a74f956fa5b8f73235db8cb8aec9e097685e83a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2.7
 #
 # steadystate_tests.py
 #