Skip to content

Commit a0891ae

Browse files
Change from python to python3 (TriBITSPub#610)
This allows all of these Python scripts to run on more modern systems where 'python3' is the name of the Python interpreter executable.
1 parent b4a66dc commit a0891ae

39 files changed

+39
-39
lines changed

test/ci_support/example_cdash_analyze_and_report_random_failures.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
import sys
44
import argparse

test/ci_support/example_test_failure_github_issue.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
import os
44
import sys

test/doc/sphinx_rst_generator_UnitTests.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
# -*- coding: utf-8 -*-
33
# @HEADER
44
# ************************************************************************

test/python_utils/gitdist_UnitTests.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
# -*- coding: utf-8 -*-
33
# @HEADER
44
# ************************************************************************

test/python_utils/lower_case_cmake_UnitTests.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
# -*- coding: utf-8 -*-
33

44
################################################################################

test/python_utils/utils/return_input.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
# @HEADER
44
# ************************************************************************

tribits/ci_support/TribitsDependencies.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
# @HEADER
44
# *****************************************************************************

tribits/ci_support/cdash_analyze_and_report.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
# @HEADER
44
# *****************************************************************************

tribits/ci_support/cdash_build_testing_date.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
# @HEADER
44
# *****************************************************************************

tribits/ci_support/checkin-test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
# @HEADER
44
# *****************************************************************************

tribits/ci_support/clone_extra_repos.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
# @HEADER
44
# *****************************************************************************

tribits/ci_support/dump-package-dep-table.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
# @HEADER
44
# *****************************************************************************

tribits/ci_support/filter-packages-list.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
# @HEADER
44
# *****************************************************************************

tribits/ci_support/get-tribits-packages-from-files-list.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
# @HEADER
44
# *****************************************************************************

tribits/ci_support/get-tribits-packages-from-last-tests-failed.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
# @HEADER
44
# *****************************************************************************

tribits/ci_support/get-tribits-packages.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
# @HEADER
44
# *****************************************************************************

tribits/ci_support/is_checkin_tested_commit.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
# @HEADER
44
# *****************************************************************************

tribits/core/test_support/TribitsAddAdvancedTest.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ include("${CMAKE_CURRENT_LIST_DIR}/../utils/PrintVar.cmake")
345345
# instead. **WARNING:** If you want to run such tests using valgrind, you
346346
# have to use the raw executable as the ``<cmndExec>`` argument and *not*
347347
# the script. For example, if you have a python script
348-
# ``my_python_test.py`` with ``/usr/bin/env python`` at the top, you can't
348+
# ``my_python_test.py`` with ``/usr/bin/env python3`` at the top, you can't
349349
# just use::
350350
#
351351
# CMND <path>/my_python_test.py ARGS "<arg0>" "<arg1>" ...

tribits/ctest_driver/dump-cdash-deps-xml-file.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
# @HEADER
44
# *****************************************************************************

tribits/dashboard_driver/tdd_driver.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
# @HEADER
44
# *****************************************************************************

tribits/devtools_install/install-autoconf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
# @HEADER
44
# *****************************************************************************

tribits/devtools_install/install-cmake.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
# @HEADER
44
# *****************************************************************************

tribits/devtools_install/install-gcc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
# @HEADER
44
# *****************************************************************************

tribits/devtools_install/install-git.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
# @HEADER
44
# *****************************************************************************

tribits/devtools_install/install-mpich.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
# @HEADER
44
# *****************************************************************************

tribits/devtools_install/install-openmpi.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
# @HEADER
44
# *****************************************************************************

tribits/devtools_install/install_devtools.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
# @HEADER
44
# *****************************************************************************

tribits/doc/build_ref/create-project-build-ref.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
usageHelp = r"""create-project-build-ref.py [options]
44

tribits/examples/TribitsExampleProject/packages/wrap_external/external_func/configure.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
import sys
44
import os

tribits/python_utils/download-cmake.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
# @HEADER
44
# *****************************************************************************

tribits/python_utils/extract_rst_cmake_doc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
# @HEADER
44
# *****************************************************************************

tribits/python_utils/generate-docutils-output.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
usageHelp = r"""generate-docutils-output.py --file-base=<FILEBASE> [options]
44

tribits/python_utils/generic-looping-demon.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
# @HEADER
44
# *****************************************************************************

tribits/python_utils/gitdist.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
# -*- coding: utf-8 -*-
33

44
#

tribits/python_utils/lower_case_cmake.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
# -*- coding: utf-8 -*-
33

44
import sys

tribits/python_utils/mailmsg.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
# @HEADER
44
# *****************************************************************************

tribits/python_utils/mockprogram.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
# @HEADER
44
# *****************************************************************************

tribits/python_utils/snapshot-dir.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
# @HEADER
33
# *****************************************************************************
44
# TriBITS: Tribal Build, Integrate, and Test System

tribits/python_utils/tree.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /usr/bin/env python
1+
#! /usr/bin/env python3
22

33
# tree.py
44
#

0 commit comments

Comments
 (0)