From 14000ad47a4d758166a320be5c399cae5ba00839 Mon Sep 17 00:00:00 2001 From: David Neto Date: Tue, 23 Jan 2024 15:42:34 -0500 Subject: [PATCH] Use python3 explicitly. (#5540) Some Linux images don't ship with a plain 'python' --- test/scripts/test_compact_ids.py | 4 ++-- utils/check_copyright.py | 2 +- utils/check_symbol_exports.py | 2 +- utils/fixup_fuzz_result.py | 2 +- utils/generate_changelog.py | 2 +- utils/generate_grammar_tables.py | 2 +- utils/generate_registry_tables.py | 2 +- utils/generate_vim_syntax.py | 2 +- utils/update_build_version.py | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-) diff --git a/test/scripts/test_compact_ids.py b/test/scripts/test_compact_ids.py index 6ca6e67b2..b1d53870d 100644 --- a/test/scripts/test_compact_ids.py +++ b/test/scripts/test_compact_ids.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Copyright (c) 2017 Google Inc. # Licensed under the Apache License, Version 2.0 (the "License"); @@ -47,7 +47,7 @@ def print_usage(): template= \ """{script} tests correctness of opt pass tools/opt --compact-ids -USAGE: python {script} [] +USAGE: python3 {script} [] Requires tools/spirv-dis, tools/spirv-as and tools/spirv-opt to be in path (call the script from the SPIRV-Tools build output directory). diff --git a/utils/check_copyright.py b/utils/check_copyright.py index e3e74bc9d..a849d0467 100755 --- a/utils/check_copyright.py +++ b/utils/check_copyright.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # coding=utf-8 # Copyright (c) 2016 Google Inc. # diff --git a/utils/check_symbol_exports.py b/utils/check_symbol_exports.py index e1ca0b788..e44294fe8 100755 --- a/utils/check_symbol_exports.py +++ b/utils/check_symbol_exports.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Copyright (c) 2017 Google Inc. # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/utils/fixup_fuzz_result.py b/utils/fixup_fuzz_result.py index 9fe54a3cc..5b14a7db9 100755 --- a/utils/fixup_fuzz_result.py +++ b/utils/fixup_fuzz_result.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Copyright (c) 2018 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/utils/generate_changelog.py b/utils/generate_changelog.py index 54db72828..348bc50a6 100644 --- a/utils/generate_changelog.py +++ b/utils/generate_changelog.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Copyright (c) 2023 Google Inc. # diff --git a/utils/generate_grammar_tables.py b/utils/generate_grammar_tables.py index e6a145583..48f83c33a 100755 --- a/utils/generate_grammar_tables.py +++ b/utils/generate_grammar_tables.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Copyright (c) 2016 Google Inc. # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/utils/generate_registry_tables.py b/utils/generate_registry_tables.py index 14d4909fa..69628faad 100755 --- a/utils/generate_registry_tables.py +++ b/utils/generate_registry_tables.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Copyright (c) 2016 Google Inc. # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/utils/generate_vim_syntax.py b/utils/generate_vim_syntax.py index da7e99ba7..5c9c6b21a 100755 --- a/utils/generate_vim_syntax.py +++ b/utils/generate_vim_syntax.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Copyright (c) 2016 Google Inc. # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/utils/update_build_version.py b/utils/update_build_version.py index f3d05b5d3..bb66e18a5 100755 --- a/utils/update_build_version.py +++ b/utils/update_build_version.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Copyright (c) 2016 Google Inc. #