Skip to content

Commit

Permalink
tools: use /usr/bin/python2.7 as the interpreter
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
sitsofe committed Oct 29, 2017
1 parent a72f40b commit 60023ad
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion tools/fio_jsonplus_clat2csv
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python2.7
#
# fio_jsonplus_clat2csv
#
Expand Down
3 changes: 1 addition & 2 deletions tools/fiologparser.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python2.7
#
# fiologparser.py
#
Expand Down Expand Up @@ -218,4 +218,3 @@ def get_contribution(self, start, end):
print_all_stats(ctx, series)
else:
print_default(ctx, series)

2 changes: 1 addition & 1 deletion tools/hist/fiologparser_hist.py
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
3 changes: 1 addition & 2 deletions tools/hist/half-bins.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -35,4 +35,3 @@ def main(ctx):
'e.g. coarseness of 4 merges each 2^4 = 16 consecutive '
'bins.')
main(p.parse_args())

2 changes: 1 addition & 1 deletion tools/plot/fio2gnuplot
Original file line number Diff line number Diff line change
@@ -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>
Expand Down
2 changes: 1 addition & 1 deletion unit_tests/steadystate_tests.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python2.7
#
# steadystate_tests.py
#
Expand Down

0 comments on commit 60023ad

Please sign in to comment.