This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH v2] Convert Python scripts to Python 3
- From: Alistair Francis <alistair dot francis at wdc dot com>
- To: libc-alpha at sourceware dot org
- Cc: alistair23 at gmail dot com, Alistair Francis <alistair dot francis at wdc dot com>
- Date: Thu, 6 Feb 2020 14:11:11 -0800
- Subject: [PATCH v2] Convert Python scripts to Python 3
- Ironport-sdr: FcOpLw9E33rNWrQT9BsHauNJDUtHtA/2foaLI6NgAYM4+m7ZB8mJa8AAWiXUw3pkjuf88IRuJh ZFN0bofOT7rRRpOAitrB5wmmDAdSwMTzqrf46QXfoqBDVRWqEuKTsv50C+1LtS1cZvsC73k9lu 8DkOlpGnbfru0HpUNSoCJuXb+Ssd8jpSh1QP1ewIZ87K6efP/rSf1PM/9sHyX9rOThCnSNJ9ai NVA+61fycT5KV20byOZcb+evegL8825KTn7M/mW8XikwOWB/mfVuPFAqXKWLw3ACY54fGFDg7H 5Xo=
- Ironport-sdr: rzBpFK7PlIQ4P9sB85pic/RZnnx57HKygySTVpssfeckg5hEumwOoJ+ZQ0vq817Mjk9jX/IHKG oexhE/0GXiU9oy/dHCBUMYeYnOdor9jtFMfx3OBWGSb+LBpDIVrRDb7iQ8ii/pIAab16q1oLGc 6G7UhH/svgxX3j/wTympkkFFZSf2Nk8hL2jhbpOutg7/F6RjINzGGxy9OzhgzYSRcWhvUa6KSk 5lx+YT9o/oZn0FRD/sfXIdhrArNrUpNjPRosES38uEmGBOAdqs3QsLWpvHSjBVr6nUXeq82NiR wg7CLhyWemNsOmSa06tuGsXm
- Ironport-sdr: 9h40E3qAFPheVPcR3s04gW0073wjQNsluWNuartWTpfxrTqoUBhXaGuLa0vDaLy4PeDo6vv9HL rKQE9GODvoos5bZVPzR0USDlVhc85Pcd+KPZsoEiaoekDBPM8fAg43+CETeZoMsJzk4+UIx679 yZ0mCZ3DhuUZShn88YkDD80xDpMr6FfMnm1HteTqilL9FMv2AhjsZF/gsxp5Fi+rzJBG8kl1gB aDgDZ1eQ1n2IuHnAkhOFgXs6M9jnUoWv2CEF4ZtHUpHHJE05BBdr4ebF8BzdW4lKGvXyvClvFP Pwc=
- Wdcironportexception: Internal
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(-)
diff --git a/conform/glibcconform.py b/conform/glibcconform.py
index 6075745574..1440dedc83 100644
--- a/conform/glibcconform.py
+++ b/conform/glibcconform.py
@@ -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.
diff --git a/conform/linknamespace.py b/conform/linknamespace.py
index 87cd17b1ce..1d27e4cfba 100644
--- a/conform/linknamespace.py
+++ b/conform/linknamespace.py
@@ -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.
diff --git a/conform/list-header-symbols.py b/conform/list-header-symbols.py
index e43c12ec40..bfa463a303 100644
--- a/conform/list-header-symbols.py
+++ b/conform/list-header-symbols.py
@@ -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.
diff --git a/math/gen-libm-test.py b/math/gen-libm-test.py
index ec263397d8..0142c0f332 100755
--- a/math/gen-libm-test.py
+++ b/math/gen-libm-test.py
@@ -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.
diff --git a/math/gen-tgmath-tests.py b/math/gen-tgmath-tests.py
index ef207dd852..c225b64db1 100755
--- a/math/gen-tgmath-tests.py
+++ b/math/gen-tgmath-tests.py
@@ -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.
--
2.25.0