[PATCH] Use #!/usr/bin/python3 in remaining Python scripts
Florian Weimer
fweimer@redhat.com
Tue Mar 24 10:29:47 GMT 2026
Some distributions ban the /usr/bin/python path in their build
systems due to the ambiguity of whether it refers to Python 2 or
Python 3. Python 2 has been out of support for many years, and
glibc has required Python 3 at build time for a while. So it seems
safe to switch the remaining scripts over to /usr/bin/python3.
---
benchtests/scripts/compare_bench.py | 2 +-
benchtests/scripts/compare_strings.py | 2 +-
benchtests/scripts/import_bench.py | 2 +-
scripts/glibc_shared_code.py | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/benchtests/scripts/compare_bench.py b/benchtests/scripts/compare_bench.py
index 98d476b34b..e97a61591e 100755
--- a/benchtests/scripts/compare_bench.py
+++ b/benchtests/scripts/compare_bench.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
# Copyright (C) 2015-2026 Free Software Foundation, Inc.
# This file is part of the GNU C Library.
#
diff --git a/benchtests/scripts/compare_strings.py b/benchtests/scripts/compare_strings.py
index 67db3faa47..c601a16fbb 100755
--- a/benchtests/scripts/compare_strings.py
+++ b/benchtests/scripts/compare_strings.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
# Copyright (C) 2017-2026 Free Software Foundation, Inc.
# This file is part of the GNU C Library.
#
diff --git a/benchtests/scripts/import_bench.py b/benchtests/scripts/import_bench.py
index 9f83cade11..262f06ea77 100644
--- a/benchtests/scripts/import_bench.py
+++ b/benchtests/scripts/import_bench.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
# Copyright (C) 2015-2026 Free Software Foundation, Inc.
# This file is part of the GNU C Library.
#
diff --git a/scripts/glibc_shared_code.py b/scripts/glibc_shared_code.py
index 2a3897b074..8f42ff84d0 100644
--- a/scripts/glibc_shared_code.py
+++ b/scripts/glibc_shared_code.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
# Copyright (C) 2021-2026 Free Software Foundation, Inc.
# This file is part of the GNU C Library.
#
base-commit: 9f5f18aab40ec6b61fa49a007615e6077e9a979b
More information about the Libc-alpha
mailing list