[v2] Convert Python scripts to Python 3
Commit Message
Change all of the #! lines in Python scripts that are called from
Makefiles to reference /usr/bin/python3.
All of the scripts called from Makefiles are already run with Python 3,
so let's make sure they are explicitly using Python 3 if called
manually.
---
conform/glibcconform.py | 2 +-
conform/linknamespace.py | 2 +-
conform/list-header-symbols.py | 2 +-
math/gen-libm-test.py | 2 +-
math/gen-tgmath-tests.py | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
Comments
On Thu, 6 Feb 2020, Alistair Francis wrote:
> Change all of the #! lines in Python scripts that are called from
> Makefiles to reference /usr/bin/python3.
>
> All of the scripts called from Makefiles are already run with Python 3,
> so let's make sure they are explicitly using Python 3 if called
> manually.
Some of the benchtests scripts are missing from this patch but are run
from benchtests/Makefile with $(PYTHON) (i.e. Python 3).
On Thu, Feb 6, 2020 at 3:32 PM Joseph Myers <joseph@codesourcery.com> wrote:
>
> On Thu, 6 Feb 2020, Alistair Francis wrote:
>
> > Change all of the #! lines in Python scripts that are called from
> > Makefiles to reference /usr/bin/python3.
> >
> > All of the scripts called from Makefiles are already run with Python 3,
> > so let's make sure they are explicitly using Python 3 if called
> > manually.
>
> Some of the benchtests scripts are missing from this patch but are run
> from benchtests/Makefile with $(PYTHON) (i.e. Python 3).
Good point, patch sent.
Alistair
>
> --
> Joseph S. Myers
> joseph@codesourcery.com
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
# Shared code for glibc conformance tests.
# Copyright (C) 2018-2020 Free Software Foundation, Inc.
# This file is part of the GNU C Library.
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
# Check that use of symbols declared in a given header does not result
# in any symbols being brought in that are not reserved with external
# linkage for the given standard.
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
# Print a list of symbols exported by some headers that would
# otherwise be in the user's namespace.
# Copyright (C) 2018-2020 Free Software Foundation, Inc.
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
# Generate tests for libm functions.
# Copyright (C) 2018-2020 Free Software Foundation, Inc.
# This file is part of the GNU C Library.
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
# Generate tests for <tgmath.h> macros.
# Copyright (C) 2017-2020 Free Software Foundation, Inc.
# This file is part of the GNU C Library.