diff --git a/cmake/tribits/CHANGELOG.md b/cmake/tribits/CHANGELOG.md index b3f1edd1ef0d..d824c7810d16 100644 --- a/cmake/tribits/CHANGELOG.md +++ b/cmake/tribits/CHANGELOG.md @@ -2,6 +2,46 @@ ChangeLog for TriBITS ---------------------------------------- +## 2024-10-08: + +* **Changed:** The TriBITS framework find operation for + Python[†](#tribits_python_support) has been changed from + calling `find_package(PythonInterp)` (which uses the deprecated + `FindPythonInterp.cmake` module) to calling `find_package(Python3)` (which + uses [FindPython3.cmake]). In the process, the internal CMake cache + variable set by this operation was changed from `PYTHON_EXECUTABLE` to + `Python3_EXECUTABLE`, and TriBITS projects need make that change as well + when upgrading TriBITS. (This change can be made automatically in all of + the project's CMake files by running the script + `tribits/refactoring/to-python3.sh
-#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE}
which means that the python executable that is recognized (and compiled against) by the CMake build system will also be the python diff --git a/packages/PyTrilinos/doc/DevelopersGuide/Testing.txt b/packages/PyTrilinos/doc/DevelopersGuide/Testing.txt index 089946e00b03..c98a32442662 100644 --- a/packages/PyTrilinos/doc/DevelopersGuide/Testing.txt +++ b/packages/PyTrilinos/doc/DevelopersGuide/Testing.txt @@ -44,7 +44,7 @@ reason for this is that CMake variable values can be substituted during the copy procedure. For example, the first line of each test script source file is now:: - #! ${PYTHON_EXECUTABLE} + #! ${Python3_EXECUTABLE} which means that the python executable that is recognized (and compiled against) by the CMake build system will also be the python diff --git a/packages/PyTrilinos/doc/Doxygen/CMakeLists.txt b/packages/PyTrilinos/doc/Doxygen/CMakeLists.txt index 37dc7c7e38e7..d46df421389d 100644 --- a/packages/PyTrilinos/doc/Doxygen/CMakeLists.txt +++ b/packages/PyTrilinos/doc/Doxygen/CMakeLists.txt @@ -63,7 +63,7 @@ FOREACH(Package ${PyTrilinos_PACKAGES}) ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile_${Package} @ONLY ) - EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/docstrings.py + EXECUTE_PROCESS(COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/docstrings.py --doxygen=${DOXYGEN_EXECUTABLE} ${Package} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} ERROR_VARIABLE Doxy_CONVERT_ERROR) diff --git a/packages/PyTrilinos/doc/Doxygen/docstrings.py.in b/packages/PyTrilinos/doc/Doxygen/docstrings.py.in index c0a537af9b29..ac59b6b38cd6 100755 --- a/packages/PyTrilinos/doc/Doxygen/docstrings.py.in +++ b/packages/PyTrilinos/doc/Doxygen/docstrings.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # System includes from __future__ import print_function diff --git a/packages/PyTrilinos/doc/Doxygen/doxy2swig.py.in b/packages/PyTrilinos/doc/Doxygen/doxy2swig.py.in index ba7088ecc27e..878bd9721ffc 100755 --- a/packages/PyTrilinos/doc/Doxygen/doxy2swig.py.in +++ b/packages/PyTrilinos/doc/Doxygen/doxy2swig.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} """ Doxygen XML to SWIG docstring converter. diff --git a/packages/PyTrilinos/doc/Doxygen/makedeps.py.in b/packages/PyTrilinos/doc/Doxygen/makedeps.py.in index e7c18c441311..3a94a5590bfc 100755 --- a/packages/PyTrilinos/doc/Doxygen/makedeps.py.in +++ b/packages/PyTrilinos/doc/Doxygen/makedeps.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} """ Create a Makefile dependency file that includes all of the names of the source diff --git a/packages/PyTrilinos/doc/UsersGuide/BuildingAndInstalling.txt b/packages/PyTrilinos/doc/UsersGuide/BuildingAndInstalling.txt index 99b5ec781a64..0392cd4df3b2 100644 --- a/packages/PyTrilinos/doc/UsersGuide/BuildingAndInstalling.txt +++ b/packages/PyTrilinos/doc/UsersGuide/BuildingAndInstalling.txt @@ -62,7 +62,7 @@ Python and SWIG You may specify the python interpreter (and thus the version of the Python/C API) with the ``cmake`` option:: - -D PYTHON_EXECUTABLE:FILEPATH=... + -D Python3_EXECUTABLE:FILEPATH=... If you do not specify this option, ``cmake`` actually looks for an executable named ``python2.7`` (and then ``python2.6``, etc., down to diff --git a/packages/PyTrilinos/doc/UsersGuide/UsersGuide.html b/packages/PyTrilinos/doc/UsersGuide/UsersGuide.html index 6a2425e34a7d..377b14dd0b58 100644 --- a/packages/PyTrilinos/doc/UsersGuide/UsersGuide.html +++ b/packages/PyTrilinos/doc/UsersGuide/UsersGuide.html @@ -427,7 +427,7 @@
You may specify the python interpreter (and thus the version of the Python/C API) with the cmake option:
--D PYTHON_EXECUTABLE:FILEPATH=... +-D Python3_EXECUTABLE:FILEPATH=...
If you do not specify this option, cmake actually looks for an
executable named python2.7 (and then python2.6, etc., down to
diff --git a/packages/PyTrilinos/example/CMakeLists.txt b/packages/PyTrilinos/example/CMakeLists.txt
index e0b9d4f89ed2..725334ed2869 100644
--- a/packages/PyTrilinos/example/CMakeLists.txt
+++ b/packages/PyTrilinos/example/CMakeLists.txt
@@ -47,7 +47,7 @@ ENABLE_TESTING()
INCLUDE(PyTrilinosMakeTest)
ADD_CUSTOM_COMMAND(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/testutil.py
- COMMAND ${PYTHON_EXECUTABLE}
+ COMMAND ${Python3_EXECUTABLE}
${PyTrilinos_BINARY_DIR}/util/copyWithCMakeSubstitutions.py
${CMAKE_CURRENT_SOURCE_DIR}/testutil.py.in
${CMAKE_CURRENT_BINARY_DIR}/testutil.py
@@ -57,7 +57,7 @@ ADD_CUSTOM_TARGET(PyTrilinos_Example_testutil ALL
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/testutil.py)
ADD_CUSTOM_COMMAND(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/gre__115.rua
- COMMAND ${PYTHON_EXECUTABLE}
+ COMMAND ${Python3_EXECUTABLE}
${PyTrilinos_BINARY_DIR}/util/copyWithCMakeSubstitutions.py
${CMAKE_CURRENT_SOURCE_DIR}/gre__115.mx
${CMAKE_CURRENT_BINARY_DIR}/gre__115.rua
diff --git a/packages/PyTrilinos/example/exAmesos_Factory.py.in b/packages/PyTrilinos/example/exAmesos_Factory.py.in
index 0e3d3481ea00..8b2279f78c26 100755
--- a/packages/PyTrilinos/example/exAmesos_Factory.py.in
+++ b/packages/PyTrilinos/example/exAmesos_Factory.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/example/exAmesos_Solvers.py.in b/packages/PyTrilinos/example/exAmesos_Solvers.py.in
index c056d4341ebf..273200a054ff 100755
--- a/packages/PyTrilinos/example/exAmesos_Solvers.py.in
+++ b/packages/PyTrilinos/example/exAmesos_Solvers.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/example/exAnasazi_BlockDavidson.py.in b/packages/PyTrilinos/example/exAnasazi_BlockDavidson.py.in
index 2de10323d03f..69a94881498f 100755
--- a/packages/PyTrilinos/example/exAnasazi_BlockDavidson.py.in
+++ b/packages/PyTrilinos/example/exAnasazi_BlockDavidson.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/example/exAztecOO.py.in b/packages/PyTrilinos/example/exAztecOO.py.in
index 0c3f04afacc9..23d357963874 100755
--- a/packages/PyTrilinos/example/exAztecOO.py.in
+++ b/packages/PyTrilinos/example/exAztecOO.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/example/exAztecOO_BasicRowMatrix.py.in b/packages/PyTrilinos/example/exAztecOO_BasicRowMatrix.py.in
index e52348c1a679..83a21b88c21d 100755
--- a/packages/PyTrilinos/example/exAztecOO_BasicRowMatrix.py.in
+++ b/packages/PyTrilinos/example/exAztecOO_BasicRowMatrix.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/example/exAztecOO_Operator.py.in b/packages/PyTrilinos/example/exAztecOO_Operator.py.in
index 9ad6a7d25254..d1690befac1c 100755
--- a/packages/PyTrilinos/example/exAztecOO_Operator.py.in
+++ b/packages/PyTrilinos/example/exAztecOO_Operator.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/example/exAztecOO_RowMatrix.py.in b/packages/PyTrilinos/example/exAztecOO_RowMatrix.py.in
index dcc4f8e83e39..f9a2e09b7f1e 100755
--- a/packages/PyTrilinos/example/exAztecOO_RowMatrix.py.in
+++ b/packages/PyTrilinos/example/exAztecOO_RowMatrix.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/example/exDomi_Simple.py.in b/packages/PyTrilinos/example/exDomi_Simple.py.in
index 89b739d115a7..1bb1b0f340f2 100755
--- a/packages/PyTrilinos/example/exDomi_Simple.py.in
+++ b/packages/PyTrilinos/example/exDomi_Simple.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/example/exEpetra.py.in b/packages/PyTrilinos/example/exEpetra.py.in
index f27b511520bb..49fcb6c0bee7 100755
--- a/packages/PyTrilinos/example/exEpetra.py.in
+++ b/packages/PyTrilinos/example/exEpetra.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/example/exEpetraExt_IO_HDF5.py.in b/packages/PyTrilinos/example/exEpetraExt_IO_HDF5.py.in
index 3d90da47e640..d35f64db9cd6 100755
--- a/packages/PyTrilinos/example/exEpetraExt_IO_HDF5.py.in
+++ b/packages/PyTrilinos/example/exEpetraExt_IO_HDF5.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/example/exEpetraExt_IO_MatrixMarket.py.in b/packages/PyTrilinos/example/exEpetraExt_IO_MatrixMarket.py.in
index 83e1df3fc8b3..fecc442d3b97 100755
--- a/packages/PyTrilinos/example/exEpetraExt_IO_MatrixMarket.py.in
+++ b/packages/PyTrilinos/example/exEpetraExt_IO_MatrixMarket.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/example/exEpetraExt_IO_XML.py.in b/packages/PyTrilinos/example/exEpetraExt_IO_XML.py.in
index 4c338604eb51..b56c447cd88e 100755
--- a/packages/PyTrilinos/example/exEpetraExt_IO_XML.py.in
+++ b/packages/PyTrilinos/example/exEpetraExt_IO_XML.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/example/exEpetraExt_MatrixMatrix.py.in b/packages/PyTrilinos/example/exEpetraExt_MatrixMatrix.py.in
index 4205551be1e0..d4fd5be9a91f 100755
--- a/packages/PyTrilinos/example/exEpetraExt_MatrixMatrix.py.in
+++ b/packages/PyTrilinos/example/exEpetraExt_MatrixMatrix.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/example/exEpetra_Comm.py.in b/packages/PyTrilinos/example/exEpetra_Comm.py.in
index ec499a8c3522..4286f676cd99 100755
--- a/packages/PyTrilinos/example/exEpetra_Comm.py.in
+++ b/packages/PyTrilinos/example/exEpetra_Comm.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/example/exEpetra_CrsMatrix_Easy.py.in b/packages/PyTrilinos/example/exEpetra_CrsMatrix_Easy.py.in
index 6abadf1e4338..ec6d02a78e13 100755
--- a/packages/PyTrilinos/example/exEpetra_CrsMatrix_Easy.py.in
+++ b/packages/PyTrilinos/example/exEpetra_CrsMatrix_Easy.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/example/exEpetra_CrsMatrix_Efficient.py.in b/packages/PyTrilinos/example/exEpetra_CrsMatrix_Efficient.py.in
index bedee3eb2148..59feca1aab25 100755
--- a/packages/PyTrilinos/example/exEpetra_CrsMatrix_Efficient.py.in
+++ b/packages/PyTrilinos/example/exEpetra_CrsMatrix_Efficient.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/example/exEpetra_DAP.py.in b/packages/PyTrilinos/example/exEpetra_DAP.py.in
index d112a8f45a05..a3a3fd165c43 100755
--- a/packages/PyTrilinos/example/exEpetra_DAP.py.in
+++ b/packages/PyTrilinos/example/exEpetra_DAP.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/example/exEpetra_FECrsMatrix_Easy.py.in b/packages/PyTrilinos/example/exEpetra_FECrsMatrix_Easy.py.in
index 72b75666e425..9e0d4f064d35 100755
--- a/packages/PyTrilinos/example/exEpetra_FECrsMatrix_Easy.py.in
+++ b/packages/PyTrilinos/example/exEpetra_FECrsMatrix_Easy.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/example/exEpetra_ImportExport.py.in b/packages/PyTrilinos/example/exEpetra_ImportExport.py.in
index 37b690100d76..3880f9377ccf 100755
--- a/packages/PyTrilinos/example/exEpetra_ImportExport.py.in
+++ b/packages/PyTrilinos/example/exEpetra_ImportExport.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/example/exGaleri.py.in b/packages/PyTrilinos/example/exGaleri.py.in
index 4625ae8061eb..172437b804f9 100755
--- a/packages/PyTrilinos/example/exGaleri.py.in
+++ b/packages/PyTrilinos/example/exGaleri.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/example/exGaleri_ReadHB.py.in b/packages/PyTrilinos/example/exGaleri_ReadHB.py.in
index d4d291c2a5db..ef3028537641 100755
--- a/packages/PyTrilinos/example/exGaleri_ReadHB.py.in
+++ b/packages/PyTrilinos/example/exGaleri_ReadHB.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/example/exIFPACK.py.in b/packages/PyTrilinos/example/exIFPACK.py.in
index 85da04dfe92a..b8848fd4ca40 100755
--- a/packages/PyTrilinos/example/exIFPACK.py.in
+++ b/packages/PyTrilinos/example/exIFPACK.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/example/exIsorropia.py.in b/packages/PyTrilinos/example/exIsorropia.py.in
index 846367e6b23f..911ef3c3b8b4 100755
--- a/packages/PyTrilinos/example/exIsorropia.py.in
+++ b/packages/PyTrilinos/example/exIsorropia.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/example/exKomplex_Simple.py.in b/packages/PyTrilinos/example/exKomplex_Simple.py.in
index e3f4e98b36c0..1fc22a553020 100755
--- a/packages/PyTrilinos/example/exKomplex_Simple.py.in
+++ b/packages/PyTrilinos/example/exKomplex_Simple.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/example/exLOCA_Chan.py.in b/packages/PyTrilinos/example/exLOCA_Chan.py.in
index 95a3efc5d4b3..a7e713957dd2 100755
--- a/packages/PyTrilinos/example/exLOCA_Chan.py.in
+++ b/packages/PyTrilinos/example/exLOCA_Chan.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# ************************************************************************
diff --git a/packages/PyTrilinos/example/exLOCA_Chan_Jac.py.in b/packages/PyTrilinos/example/exLOCA_Chan_Jac.py.in
index 874930734eb3..ac2b993e8044 100755
--- a/packages/PyTrilinos/example/exLOCA_Chan_Jac.py.in
+++ b/packages/PyTrilinos/example/exLOCA_Chan_Jac.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# ************************************************************************
diff --git a/packages/PyTrilinos/example/exMLAPI.py.in b/packages/PyTrilinos/example/exMLAPI.py.in
index 80710cee17f6..2143e440ac8b 100755
--- a/packages/PyTrilinos/example/exMLAPI.py.in
+++ b/packages/PyTrilinos/example/exMLAPI.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/example/exMLAPI_AztecOO.py.in b/packages/PyTrilinos/example/exMLAPI_AztecOO.py.in
index ecee9419a9e9..a54438b4211a 100755
--- a/packages/PyTrilinos/example/exMLAPI_AztecOO.py.in
+++ b/packages/PyTrilinos/example/exMLAPI_AztecOO.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/example/exMLAPI_Iterate.py.in b/packages/PyTrilinos/example/exMLAPI_Iterate.py.in
index 146efc841ba2..a2dd0c6d8658 100755
--- a/packages/PyTrilinos/example/exMLAPI_Iterate.py.in
+++ b/packages/PyTrilinos/example/exMLAPI_Iterate.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/example/exMLAPI_PyMatrix.py.in b/packages/PyTrilinos/example/exMLAPI_PyMatrix.py.in
index 840f36179e63..c7762fe76f36 100755
--- a/packages/PyTrilinos/example/exMLAPI_PyMatrix.py.in
+++ b/packages/PyTrilinos/example/exMLAPI_PyMatrix.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/example/exMLAPI_Simple.py.in b/packages/PyTrilinos/example/exMLAPI_Simple.py.in
index aaef201b7f27..004b6d09f62a 100755
--- a/packages/PyTrilinos/example/exMLAPI_Simple.py.in
+++ b/packages/PyTrilinos/example/exMLAPI_Simple.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/example/exMLAPI_Smoother.py.in b/packages/PyTrilinos/example/exMLAPI_Smoother.py.in
index ef3c891d3bcc..49e96dbeeec4 100755
--- a/packages/PyTrilinos/example/exMLAPI_Smoother.py.in
+++ b/packages/PyTrilinos/example/exMLAPI_Smoother.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/example/exMPI_Init.py.in b/packages/PyTrilinos/example/exMPI_Init.py.in
index 50734b6d7764..2de079f7340f 100755
--- a/packages/PyTrilinos/example/exMPI_Init.py.in
+++ b/packages/PyTrilinos/example/exMPI_Init.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/example/exNOXEpetraExt_2DSim.py.in b/packages/PyTrilinos/example/exNOXEpetraExt_2DSim.py.in
index b138a090d67d..e4d7e73ea745 100755
--- a/packages/PyTrilinos/example/exNOXEpetraExt_2DSim.py.in
+++ b/packages/PyTrilinos/example/exNOXEpetraExt_2DSim.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/example/exNOX_1Dfdm.py.in b/packages/PyTrilinos/example/exNOX_1Dfdm.py.in
index 44a3ff9563d1..aecd4893dff2 100755
--- a/packages/PyTrilinos/example/exNOX_1Dfdm.py.in
+++ b/packages/PyTrilinos/example/exNOX_1Dfdm.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/example/exNOX_2DSim.py.in b/packages/PyTrilinos/example/exNOX_2DSim.py.in
index 4b79e9a051ba..c388b9e01dd3 100755
--- a/packages/PyTrilinos/example/exNOX_2DSim.py.in
+++ b/packages/PyTrilinos/example/exNOX_2DSim.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/example/exTeuchos.py.in b/packages/PyTrilinos/example/exTeuchos.py.in
index 7a0075568952..2418b35dfc37 100755
--- a/packages/PyTrilinos/example/exTeuchos.py.in
+++ b/packages/PyTrilinos/example/exTeuchos.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/example/exThyra.py.in b/packages/PyTrilinos/example/exThyra.py.in
index 18614d00d130..f94e6bfaa203 100755
--- a/packages/PyTrilinos/example/exThyra.py.in
+++ b/packages/PyTrilinos/example/exThyra.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/example/testutil.py.in b/packages/PyTrilinos/example/testutil.py.in
index 57f7562811bb..0f115f102758 100644
--- a/packages/PyTrilinos/example/testutil.py.in
+++ b/packages/PyTrilinos/example/testutil.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/src/CMakeLists.txt b/packages/PyTrilinos/src/CMakeLists.txt
index 5e071091841f..5cdc5a45f6bd 100644
--- a/packages/PyTrilinos/src/CMakeLists.txt
+++ b/packages/PyTrilinos/src/CMakeLists.txt
@@ -262,7 +262,7 @@ SET_TARGET_PROPERTIES(pytrilinos
#
# Get the python version
-EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c
+EXECUTE_PROCESS(COMMAND ${Python3_EXECUTABLE} -c
"import sys; print(sys.version[:3])"
OUTPUT_VARIABLE PYTHON_VERSION
OUTPUT_STRIP_TRAILING_WHITESPACE
@@ -323,7 +323,7 @@ CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${TEUCHOS_RCP_SCRIPT}.in
${CMAKE_CURRENT_BINARY_DIR}/${TEUCHOS_RCP_SCRIPT})
ADD_CUSTOM_COMMAND(
OUTPUT "${TEUCHOS_RCP}"
- COMMAND "${PYTHON_EXECUTABLE}"
+ COMMAND "${Python3_EXECUTABLE}"
ARGS ${CMAKE_CURRENT_BINARY_DIR}/${TEUCHOS_RCP_SCRIPT} >
${CMAKE_CURRENT_BINARY_DIR}/${TEUCHOS_RCP}
)
@@ -343,7 +343,7 @@ SET_TARGET_PROPERTIES(${TEUCHOS_RCP_TARGET} PROPERTIES
LINK_FLAGS "${EXTRA_LINK_ARGS}"
)
ADD_CUSTOM_COMMAND(TARGET ${TEUCHOS_RCP_TARGET} POST_BUILD
- COMMAND ${PYTHON_EXECUTABLE} -c "import py_compile; py_compile.compile('PyTrilinos/Teuchos/RCP.py', 'PyTrilinos/Teuchos/RCP.pyc')"
+ COMMAND ${Python3_EXECUTABLE} -c "import py_compile; py_compile.compile('PyTrilinos/Teuchos/RCP.py', 'PyTrilinos/Teuchos/RCP.pyc')"
COMMENT "Byte compiling Teuchos/RCP.py"
VERBATIM)
LIST(APPEND ADDITIONAL_CLEAN_FILES ${CMAKE_CURRENT_BINARY_DIR}/${TEUCHOS_RCP})
@@ -399,7 +399,7 @@ FOREACH(MODULE ${PyTrilinos_MODULES})
# causes other packages to "import Teuchos" properly.
IF("${MODULE_OUTDIR}" MATCHES "PyTrilinos/Teuchos")
ADD_CUSTOM_COMMAND(TARGET ${PyTrilinos_TARGET_NAME} POST_BUILD
- COMMAND ${PYTHON_EXECUTABLE} -c "import py_compile; py_compile.compile('PyTrilinos/Teuchos/${MODULE_NAME}.py', 'PyTrilinos/Teuchos/${MODULE_NAME}.pyc')"
+ COMMAND ${Python3_EXECUTABLE} -c "import py_compile; py_compile.compile('PyTrilinos/Teuchos/${MODULE_NAME}.py', 'PyTrilinos/Teuchos/${MODULE_NAME}.pyc')"
COMMENT "Byte compiling Teuchos/${MODULE_NAME}.py"
VERBATIM)
INSTALL(FILES
@@ -414,7 +414,7 @@ FOREACH(MODULE ${PyTrilinos_MODULES})
ELSEIF("${MODULE_OUTDIR}" MATCHES "PyTrilinos/NOX/Epetra")
SET(TRILINOS_LIBS ${NOXEPETRA_LIBRARIES})
ADD_CUSTOM_COMMAND(TARGET ${PyTrilinos_TARGET_NAME} POST_BUILD
- COMMAND ${PYTHON_EXECUTABLE} -c "import py_compile; py_compile.compile('PyTrilinos/NOX/Epetra/${MODULE_NAME}.py', 'PyTrilinos/NOX/Epetra/${MODULE_NAME}.pyc')"
+ COMMAND ${Python3_EXECUTABLE} -c "import py_compile; py_compile.compile('PyTrilinos/NOX/Epetra/${MODULE_NAME}.py', 'PyTrilinos/NOX/Epetra/${MODULE_NAME}.pyc')"
COMMENT "Byte compiling NOX/Epetra/${MODULE_NAME}.py"
VERBATIM)
INSTALL(FILES
@@ -430,7 +430,7 @@ FOREACH(MODULE ${PyTrilinos_MODULES})
ELSEIF("${MODULE_OUTDIR}" MATCHES "PyTrilinos/NOX/PETSc")
SET(TRILINOS_LIBS ${NOXPETSC_LIBRARIES})
ADD_CUSTOM_COMMAND(TARGET ${PyTrilinos_TARGET_NAME} POST_BUILD
- COMMAND ${PYTHON_EXECUTABLE} -c "import py_compile; py_compile.compile('PyTrilinos/NOX/PETSc/${MODULE_NAME}.py', 'PyTrilinos/NOX/PETSc/${MODULE_NAME}.pyc')"
+ COMMAND ${Python3_EXECUTABLE} -c "import py_compile; py_compile.compile('PyTrilinos/NOX/PETSc/${MODULE_NAME}.py', 'PyTrilinos/NOX/PETSc/${MODULE_NAME}.pyc')"
COMMENT "Byte compiling NOX/PETSc/${MODULE_NAME}.py"
VERBATIM)
INSTALL(FILES
@@ -446,7 +446,7 @@ FOREACH(MODULE ${PyTrilinos_MODULES})
ELSEIF("${MODULE_OUTDIR}" MATCHES "PyTrilinos/NOX")
SET(TRILINOS_LIBS ${NOX_LIBRARIES})
ADD_CUSTOM_COMMAND(TARGET ${PyTrilinos_TARGET_NAME} POST_BUILD
- COMMAND ${PYTHON_EXECUTABLE} -c "import py_compile; py_compile.compile('PyTrilinos/NOX/${MODULE_NAME}.py', 'PyTrilinos/NOX/${MODULE_NAME}.pyc')"
+ COMMAND ${Python3_EXECUTABLE} -c "import py_compile; py_compile.compile('PyTrilinos/NOX/${MODULE_NAME}.py', 'PyTrilinos/NOX/${MODULE_NAME}.pyc')"
COMMENT "Byte compiling NOX/${MODULE_NAME}.py"
VERBATIM)
INSTALL(FILES
@@ -462,7 +462,7 @@ FOREACH(MODULE ${PyTrilinos_MODULES})
ELSEIF("${MODULE_OUTDIR}" MATCHES "PyTrilinos/LOCA/Hopf")
SET(TRILINOS_LIBS ${LOCAEPETRA_LIBRARIES})
ADD_CUSTOM_COMMAND(TARGET ${PyTrilinos_TARGET_NAME} POST_BUILD
- COMMAND ${PYTHON_EXECUTABLE} -c "import py_compile; py_compile.compile('PyTrilinos/LOCA/Hopf/${MODULE_NAME}.py', 'PyTrilinos/LOCA/Hopf/${MODULE_NAME}.pyc')"
+ COMMAND ${Python3_EXECUTABLE} -c "import py_compile; py_compile.compile('PyTrilinos/LOCA/Hopf/${MODULE_NAME}.py', 'PyTrilinos/LOCA/Hopf/${MODULE_NAME}.pyc')"
COMMENT "Byte compiling LOCA/Hopf/${MODULE_NAME}.py"
VERBATIM)
INSTALL(FILES
@@ -478,7 +478,7 @@ FOREACH(MODULE ${PyTrilinos_MODULES})
ELSEIF("${MODULE_OUTDIR}" MATCHES "PyTrilinos/LOCA/Pitchfork")
SET(TRILINOS_LIBS ${LOCAEPETRA_LIBRARIES})
ADD_CUSTOM_COMMAND(TARGET ${PyTrilinos_TARGET_NAME} POST_BUILD
- COMMAND ${PYTHON_EXECUTABLE} -c "import py_compile; py_compile.compile('PyTrilinos/LOCA/Pitchfork/${MODULE_NAME}.py', 'PyTrilinos/LOCA/Pitchfork/${MODULE_NAME}.pyc')"
+ COMMAND ${Python3_EXECUTABLE} -c "import py_compile; py_compile.compile('PyTrilinos/LOCA/Pitchfork/${MODULE_NAME}.py', 'PyTrilinos/LOCA/Pitchfork/${MODULE_NAME}.pyc')"
COMMENT "Byte compiling LOCA/Pitchfork/${MODULE_NAME}.py"
VERBATIM)
INSTALL(FILES
@@ -494,7 +494,7 @@ FOREACH(MODULE ${PyTrilinos_MODULES})
ELSEIF("${MODULE_OUTDIR}" MATCHES "PyTrilinos/LOCA/TurningPoint")
SET(TRILINOS_LIBS ${LOCAEPETRA_LIBRARIES})
ADD_CUSTOM_COMMAND(TARGET ${PyTrilinos_TARGET_NAME} POST_BUILD
- COMMAND ${PYTHON_EXECUTABLE} -c "import py_compile; py_compile.compile('PyTrilinos/LOCA/TurningPoint/${MODULE_NAME}.py', 'PyTrilinos/LOCA/TurningPoint/${MODULE_NAME}.pyc')"
+ COMMAND ${Python3_EXECUTABLE} -c "import py_compile; py_compile.compile('PyTrilinos/LOCA/TurningPoint/${MODULE_NAME}.py', 'PyTrilinos/LOCA/TurningPoint/${MODULE_NAME}.pyc')"
COMMENT "Byte compiling LOCA/TurningPoint/${MODULE_NAME}.py"
VERBATIM)
INSTALL(FILES
@@ -510,7 +510,7 @@ FOREACH(MODULE ${PyTrilinos_MODULES})
ELSEIF("${MODULE_OUTDIR}" MATCHES "PyTrilinos/LOCA/Epetra")
SET(TRILINOS_LIBS ${LOCAEPETRA_LIBRARIES})
ADD_CUSTOM_COMMAND(TARGET ${PyTrilinos_TARGET_NAME} POST_BUILD
- COMMAND ${PYTHON_EXECUTABLE} -c "import py_compile; py_compile.compile('PyTrilinos/LOCA/Epetra/${MODULE_NAME}.py', 'PyTrilinos/LOCA/Epetra/${MODULE_NAME}.pyc')"
+ COMMAND ${Python3_EXECUTABLE} -c "import py_compile; py_compile.compile('PyTrilinos/LOCA/Epetra/${MODULE_NAME}.py', 'PyTrilinos/LOCA/Epetra/${MODULE_NAME}.pyc')"
COMMENT "Byte compiling LOCA/Epetra/${MODULE_NAME}.py"
VERBATIM)
INSTALL(FILES
@@ -526,7 +526,7 @@ FOREACH(MODULE ${PyTrilinos_MODULES})
ELSEIF("${MODULE_OUTDIR}" MATCHES "PyTrilinos/LOCA")
SET(TRILINOS_LIBS ${LOCA_LIBRARIES})
ADD_CUSTOM_COMMAND(TARGET ${PyTrilinos_TARGET_NAME} POST_BUILD
- COMMAND ${PYTHON_EXECUTABLE} -c "import py_compile; py_compile.compile('PyTrilinos/LOCA/${MODULE_NAME}.py', 'PyTrilinos/LOCA/${MODULE_NAME}.pyc')"
+ COMMAND ${Python3_EXECUTABLE} -c "import py_compile; py_compile.compile('PyTrilinos/LOCA/${MODULE_NAME}.py', 'PyTrilinos/LOCA/${MODULE_NAME}.pyc')"
COMMENT "Byte compiling LOCA/${MODULE_NAME}.py"
VERBATIM)
INSTALL(FILES
@@ -542,7 +542,7 @@ FOREACH(MODULE ${PyTrilinos_MODULES})
ELSEIF("${MODULE_OUTDIR}" MATCHES "PyTrilinos/Isorropia")
SET(TRILINOS_LIBS ${ISORROPIA_LIBRARIES})
ADD_CUSTOM_COMMAND(TARGET ${PyTrilinos_TARGET_NAME} POST_BUILD
- COMMAND ${PYTHON_EXECUTABLE} -c "import py_compile; py_compile.compile('PyTrilinos/Isorropia/${MODULE_NAME}.py', 'PyTrilinos/Isorropia/${MODULE_NAME}.pyc')"
+ COMMAND ${Python3_EXECUTABLE} -c "import py_compile; py_compile.compile('PyTrilinos/Isorropia/${MODULE_NAME}.py', 'PyTrilinos/Isorropia/${MODULE_NAME}.pyc')"
COMMENT "Byte compiling Isorropia/${MODULE_NAME}.py"
VERBATIM)
INSTALL(FILES
@@ -558,7 +558,7 @@ FOREACH(MODULE ${PyTrilinos_MODULES})
ELSE()
SET(TRILINOS_LIBS ${${MODULE_UPPER}_LIBRARIES})
ADD_CUSTOM_COMMAND(TARGET ${PyTrilinos_TARGET_NAME} POST_BUILD
- COMMAND ${PYTHON_EXECUTABLE} -c "import py_compile; py_compile.compile('PyTrilinos/${MODULE}.py', 'PyTrilinos/${MODULE}.pyc')"
+ COMMAND ${Python3_EXECUTABLE} -c "import py_compile; py_compile.compile('PyTrilinos/${MODULE}.py', 'PyTrilinos/${MODULE}.pyc')"
COMMENT "Byte compiling ${MODULE}.py"
VERBATIM)
INSTALL(FILES
diff --git a/packages/PyTrilinos/src/PyTrilinos/CMakeLists.txt b/packages/PyTrilinos/src/PyTrilinos/CMakeLists.txt
index 3ca687f781f8..97fe157c0729 100644
--- a/packages/PyTrilinos/src/PyTrilinos/CMakeLists.txt
+++ b/packages/PyTrilinos/src/PyTrilinos/CMakeLists.txt
@@ -71,7 +71,7 @@ FOREACH(MODULE ${LOCAL_MODULES})
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}.py.in
${CMAKE_CURRENT_BINARY_DIR}/${MODULE}.py)
ADD_CUSTOM_COMMAND(TARGET PyTrilinos_Pure_Python_Modules
- COMMAND ${PYTHON_EXECUTABLE} -c "import py_compile; py_compile.compile('${MODULE}.py', '${MODULE}.pyc')"
+ COMMAND ${Python3_EXECUTABLE} -c "import py_compile; py_compile.compile('${MODULE}.py', '${MODULE}.pyc')"
COMMENT "Byte compiling ${MODULE}.py"
BYPRODUCTS ${MODULE}.pyc
VERBATIM)
diff --git a/packages/PyTrilinos/src/PyTrilinos/Isorropia/CMakeLists.txt b/packages/PyTrilinos/src/PyTrilinos/Isorropia/CMakeLists.txt
index a06fb4c0b452..fcc954bb5e4a 100644
--- a/packages/PyTrilinos/src/PyTrilinos/Isorropia/CMakeLists.txt
+++ b/packages/PyTrilinos/src/PyTrilinos/Isorropia/CMakeLists.txt
@@ -58,7 +58,7 @@ FOREACH(MODULE ${LOCAL_MODULES})
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}.py.in
${CMAKE_CURRENT_BINARY_DIR}/${MODULE}.py)
ADD_CUSTOM_COMMAND(TARGET PyTrilinos_Isorropia_Pure_Python_Modules
- COMMAND ${PYTHON_EXECUTABLE} -c "import py_compile; py_compile.compile('${MODULE}.py', '${MODULE}.pyc')"
+ COMMAND ${Python3_EXECUTABLE} -c "import py_compile; py_compile.compile('${MODULE}.py', '${MODULE}.pyc')"
COMMENT "Byte compiling Isorropia/${MODULE}.py"
BYPRODUCTS ${MODULE}.pyc
VERBATIM)
diff --git a/packages/PyTrilinos/src/PyTrilinos/Isorropia/__init__.py.in b/packages/PyTrilinos/src/PyTrilinos/Isorropia/__init__.py.in
index 56d8856619a2..45bec4cbc46f 100644
--- a/packages/PyTrilinos/src/PyTrilinos/Isorropia/__init__.py.in
+++ b/packages/PyTrilinos/src/PyTrilinos/Isorropia/__init__.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/src/PyTrilinos/LOCA/CMakeLists.txt b/packages/PyTrilinos/src/PyTrilinos/LOCA/CMakeLists.txt
index 5d119713bb5a..f9d30e0bb252 100644
--- a/packages/PyTrilinos/src/PyTrilinos/LOCA/CMakeLists.txt
+++ b/packages/PyTrilinos/src/PyTrilinos/LOCA/CMakeLists.txt
@@ -58,7 +58,7 @@ FOREACH(MODULE ${LOCAL_MODULES})
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}.py.in
${CMAKE_CURRENT_BINARY_DIR}/${MODULE}.py)
ADD_CUSTOM_COMMAND(TARGET PyTrilinos_LOCA_Pure_Python_Modules
- COMMAND ${PYTHON_EXECUTABLE} -c "import py_compile; py_compile.compile('${MODULE}.py', '${MODULE}.pyc')"
+ COMMAND ${Python3_EXECUTABLE} -c "import py_compile; py_compile.compile('${MODULE}.py', '${MODULE}.pyc')"
COMMENT "Byte compiling LOCA/${MODULE}.py"
BYPRODUCTS ${MODULE}.pyc
VERBATIM)
diff --git a/packages/PyTrilinos/src/PyTrilinos/LOCA/Epetra/CMakeLists.txt b/packages/PyTrilinos/src/PyTrilinos/LOCA/Epetra/CMakeLists.txt
index 221043450b01..c61356409bf4 100644
--- a/packages/PyTrilinos/src/PyTrilinos/LOCA/Epetra/CMakeLists.txt
+++ b/packages/PyTrilinos/src/PyTrilinos/LOCA/Epetra/CMakeLists.txt
@@ -58,7 +58,7 @@ FOREACH(MODULE ${LOCAL_MODULES})
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}.py.in
${CMAKE_CURRENT_BINARY_DIR}/${MODULE}.py)
ADD_CUSTOM_COMMAND(TARGET PyTrilinos_LOCA_Epetra_Pure_Python_Modules
- COMMAND ${PYTHON_EXECUTABLE} -c "import py_compile; py_compile.compile('${MODULE}.py', '${MODULE}.pyc')"
+ COMMAND ${Python3_EXECUTABLE} -c "import py_compile; py_compile.compile('${MODULE}.py', '${MODULE}.pyc')"
COMMENT "Byte compiling LOCA/Epetra/${MODULE}.py"
BYPRODUCTS ${MODULE}.pyc
VERBATIM)
diff --git a/packages/PyTrilinos/src/PyTrilinos/LOCA/Epetra/__init__.py.in b/packages/PyTrilinos/src/PyTrilinos/LOCA/Epetra/__init__.py.in
index c87f4ec4e00b..23947fcef50b 100644
--- a/packages/PyTrilinos/src/PyTrilinos/LOCA/Epetra/__init__.py.in
+++ b/packages/PyTrilinos/src/PyTrilinos/LOCA/Epetra/__init__.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/src/PyTrilinos/LOCA/Hopf/CMakeLists.txt b/packages/PyTrilinos/src/PyTrilinos/LOCA/Hopf/CMakeLists.txt
index 13d2e61841cc..ae379cf0475d 100644
--- a/packages/PyTrilinos/src/PyTrilinos/LOCA/Hopf/CMakeLists.txt
+++ b/packages/PyTrilinos/src/PyTrilinos/LOCA/Hopf/CMakeLists.txt
@@ -58,7 +58,7 @@ FOREACH(MODULE ${LOCAL_MODULES})
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}.py.in
${CMAKE_CURRENT_BINARY_DIR}/${MODULE}.py)
ADD_CUSTOM_COMMAND(TARGET PyTrilinos_LOCA_Hopf_Pure_Python_Modules
- COMMAND ${PYTHON_EXECUTABLE} -c "import py_compile; py_compile.compile('${MODULE}.py', '${MODULE}.pyc')"
+ COMMAND ${Python3_EXECUTABLE} -c "import py_compile; py_compile.compile('${MODULE}.py', '${MODULE}.pyc')"
COMMENT "Byte compiling LOCA/Hopf/${MODULE}.py"
BYPRODUCTS ${MODULE}.pyc
VERBATIM)
diff --git a/packages/PyTrilinos/src/PyTrilinos/LOCA/Hopf/__init__.py.in b/packages/PyTrilinos/src/PyTrilinos/LOCA/Hopf/__init__.py.in
index c157a7d0476b..feebe7fa029b 100644
--- a/packages/PyTrilinos/src/PyTrilinos/LOCA/Hopf/__init__.py.in
+++ b/packages/PyTrilinos/src/PyTrilinos/LOCA/Hopf/__init__.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/src/PyTrilinos/LOCA/Pitchfork/CMakeLists.txt b/packages/PyTrilinos/src/PyTrilinos/LOCA/Pitchfork/CMakeLists.txt
index ae010fc45c65..885deb0d8ffd 100644
--- a/packages/PyTrilinos/src/PyTrilinos/LOCA/Pitchfork/CMakeLists.txt
+++ b/packages/PyTrilinos/src/PyTrilinos/LOCA/Pitchfork/CMakeLists.txt
@@ -58,7 +58,7 @@ FOREACH(MODULE ${LOCAL_MODULES})
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}.py.in
${CMAKE_CURRENT_BINARY_DIR}/${MODULE}.py)
ADD_CUSTOM_COMMAND(TARGET PyTrilinos_LOCA_Pitchfork_Pure_Python_Modules
- COMMAND ${PYTHON_EXECUTABLE} -c "import py_compile; py_compile.compile('${MODULE}.py', '${MODULE}.pyc')"
+ COMMAND ${Python3_EXECUTABLE} -c "import py_compile; py_compile.compile('${MODULE}.py', '${MODULE}.pyc')"
COMMENT "Byte compiling LOCA/Pitchfork/${MODULE}.py"
BYPRODUCTS ${MODULE}.pyc
VERBATIM)
diff --git a/packages/PyTrilinos/src/PyTrilinos/LOCA/Pitchfork/__init__.py.in b/packages/PyTrilinos/src/PyTrilinos/LOCA/Pitchfork/__init__.py.in
index fa29127825d3..1b274442514d 100644
--- a/packages/PyTrilinos/src/PyTrilinos/LOCA/Pitchfork/__init__.py.in
+++ b/packages/PyTrilinos/src/PyTrilinos/LOCA/Pitchfork/__init__.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/src/PyTrilinos/LOCA/TurningPoint/CMakeLists.txt b/packages/PyTrilinos/src/PyTrilinos/LOCA/TurningPoint/CMakeLists.txt
index e2021357070e..324db7f7e37a 100644
--- a/packages/PyTrilinos/src/PyTrilinos/LOCA/TurningPoint/CMakeLists.txt
+++ b/packages/PyTrilinos/src/PyTrilinos/LOCA/TurningPoint/CMakeLists.txt
@@ -58,7 +58,7 @@ FOREACH(MODULE ${LOCAL_MODULES})
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}.py.in
${CMAKE_CURRENT_BINARY_DIR}/${MODULE}.py)
ADD_CUSTOM_COMMAND(TARGET PyTrilinos_LOCA_TurningPoint_Pure_Python_Modules
- COMMAND ${PYTHON_EXECUTABLE} -c "import py_compile; py_compile.compile('${MODULE}.py', '${MODULE}.pyc')"
+ COMMAND ${Python3_EXECUTABLE} -c "import py_compile; py_compile.compile('${MODULE}.py', '${MODULE}.pyc')"
COMMENT "Byte compiling LOCA/TurningPoint/${MODULE}.py"
BYPRODUCTS ${MODULE}.pyc
VERBATIM)
diff --git a/packages/PyTrilinos/src/PyTrilinos/LOCA/TurningPoint/__init__.py.in b/packages/PyTrilinos/src/PyTrilinos/LOCA/TurningPoint/__init__.py.in
index 2e07b1b2c617..80dd1dbe1325 100644
--- a/packages/PyTrilinos/src/PyTrilinos/LOCA/TurningPoint/__init__.py.in
+++ b/packages/PyTrilinos/src/PyTrilinos/LOCA/TurningPoint/__init__.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/src/PyTrilinos/LOCA/__init__.py.in b/packages/PyTrilinos/src/PyTrilinos/LOCA/__init__.py.in
index a1dd9d41fe66..1089800b759b 100644
--- a/packages/PyTrilinos/src/PyTrilinos/LOCA/__init__.py.in
+++ b/packages/PyTrilinos/src/PyTrilinos/LOCA/__init__.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/src/PyTrilinos/NOX/CMakeLists.txt b/packages/PyTrilinos/src/PyTrilinos/NOX/CMakeLists.txt
index d7004ed6aea5..561235b3f775 100644
--- a/packages/PyTrilinos/src/PyTrilinos/NOX/CMakeLists.txt
+++ b/packages/PyTrilinos/src/PyTrilinos/NOX/CMakeLists.txt
@@ -58,7 +58,7 @@ FOREACH(MODULE ${LOCAL_MODULES})
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}.py.in
${CMAKE_CURRENT_BINARY_DIR}/${MODULE}.py)
ADD_CUSTOM_COMMAND(TARGET PyTrilinos_NOX_Pure_Python_Modules
- COMMAND ${PYTHON_EXECUTABLE} -c "import py_compile; py_compile.compile('${MODULE}.py', '${MODULE}.pyc')"
+ COMMAND ${Python3_EXECUTABLE} -c "import py_compile; py_compile.compile('${MODULE}.py', '${MODULE}.pyc')"
COMMENT "Byte compiling NOX/${MODULE}.py"
BYPRODUCTS ${MODULE}.pyc
VERBATIM)
diff --git a/packages/PyTrilinos/src/PyTrilinos/NOX/Epetra/CMakeLists.txt b/packages/PyTrilinos/src/PyTrilinos/NOX/Epetra/CMakeLists.txt
index 93c5211c9178..78a05883d212 100644
--- a/packages/PyTrilinos/src/PyTrilinos/NOX/Epetra/CMakeLists.txt
+++ b/packages/PyTrilinos/src/PyTrilinos/NOX/Epetra/CMakeLists.txt
@@ -58,7 +58,7 @@ FOREACH(MODULE ${LOCAL_MODULES})
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}.py.in
${CMAKE_CURRENT_BINARY_DIR}/${MODULE}.py)
ADD_CUSTOM_COMMAND(TARGET PyTrilinos_NOX_Epetra_Pure_Python_Modules
- COMMAND ${PYTHON_EXECUTABLE} -c "import py_compile; py_compile.compile('${MODULE}.py', '${MODULE}.pyc')"
+ COMMAND ${Python3_EXECUTABLE} -c "import py_compile; py_compile.compile('${MODULE}.py', '${MODULE}.pyc')"
COMMENT "Byte compiling NOX/Epetra/${MODULE}.py"
BYPRODUCTS ${MODULE}.pyc
VERBATIM)
diff --git a/packages/PyTrilinos/src/PyTrilinos/NOX/Epetra/__init__.py.in b/packages/PyTrilinos/src/PyTrilinos/NOX/Epetra/__init__.py.in
index 62fb83082991..c912295c13a0 100644
--- a/packages/PyTrilinos/src/PyTrilinos/NOX/Epetra/__init__.py.in
+++ b/packages/PyTrilinos/src/PyTrilinos/NOX/Epetra/__init__.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/src/PyTrilinos/NOX/PETSc/CMakeLists.txt b/packages/PyTrilinos/src/PyTrilinos/NOX/PETSc/CMakeLists.txt
index f9632d20df48..1d33fd3cce93 100644
--- a/packages/PyTrilinos/src/PyTrilinos/NOX/PETSc/CMakeLists.txt
+++ b/packages/PyTrilinos/src/PyTrilinos/NOX/PETSc/CMakeLists.txt
@@ -58,7 +58,7 @@ FOREACH(MODULE ${LOCAL_MODULES})
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}.py.in
${CMAKE_CURRENT_BINARY_DIR}/${MODULE}.py)
ADD_CUSTOM_COMMAND(TARGET PyTrilinos_NOX_PETSc_Pure_Python_Modules
- COMMAND ${PYTHON_EXECUTABLE} -c "import py_compile; py_compile.compile('${MODULE}.py', '${MODULE}.pyc')"
+ COMMAND ${Python3_EXECUTABLE} -c "import py_compile; py_compile.compile('${MODULE}.py', '${MODULE}.pyc')"
COMMENT "Byte compiling NOX/PETSc/${MODULE}.py"
BYPRODUCTS ${MODULE}.pyc
VERBATIM)
diff --git a/packages/PyTrilinos/src/PyTrilinos/NOX/PETSc/__init__.py.in b/packages/PyTrilinos/src/PyTrilinos/NOX/PETSc/__init__.py.in
index f254110ebea3..ff799ed50ab3 100644
--- a/packages/PyTrilinos/src/PyTrilinos/NOX/PETSc/__init__.py.in
+++ b/packages/PyTrilinos/src/PyTrilinos/NOX/PETSc/__init__.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/src/PyTrilinos/NOX/__init__.py.in b/packages/PyTrilinos/src/PyTrilinos/NOX/__init__.py.in
index 0d477f1a5d20..c0fc512511d7 100644
--- a/packages/PyTrilinos/src/PyTrilinos/NOX/__init__.py.in
+++ b/packages/PyTrilinos/src/PyTrilinos/NOX/__init__.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/src/PyTrilinos/Teuchos/CMakeLists.txt b/packages/PyTrilinos/src/PyTrilinos/Teuchos/CMakeLists.txt
index 05a0308af428..15e2a717d576 100644
--- a/packages/PyTrilinos/src/PyTrilinos/Teuchos/CMakeLists.txt
+++ b/packages/PyTrilinos/src/PyTrilinos/Teuchos/CMakeLists.txt
@@ -58,7 +58,7 @@ FOREACH(MODULE ${LOCAL_MODULES})
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}.py.in
${CMAKE_CURRENT_BINARY_DIR}/${MODULE}.py)
ADD_CUSTOM_COMMAND(TARGET PyTrilinos_Teuchos_Pure_Python_Modules
- COMMAND ${PYTHON_EXECUTABLE} -c "import py_compile; py_compile.compile('${MODULE}.py', '${MODULE}.pyc')"
+ COMMAND ${Python3_EXECUTABLE} -c "import py_compile; py_compile.compile('${MODULE}.py', '${MODULE}.pyc')"
COMMENT "Byte compiling Teuchos/${MODULE}.py"
BYPRODUCTS ${MODULE}.pyc
VERBATIM)
diff --git a/packages/PyTrilinos/src/PyTrilinos/Teuchos/__init__.py.in b/packages/PyTrilinos/src/PyTrilinos/Teuchos/__init__.py.in
index 3cf921c10867..28c81e2b7712 100644
--- a/packages/PyTrilinos/src/PyTrilinos/Teuchos/__init__.py.in
+++ b/packages/PyTrilinos/src/PyTrilinos/Teuchos/__init__.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/src/PyTrilinos/__init__.py.in b/packages/PyTrilinos/src/PyTrilinos/__init__.py.in
index 6c53789fd2c3..df2e9a056a91 100644
--- a/packages/PyTrilinos/src/PyTrilinos/__init__.py.in
+++ b/packages/PyTrilinos/src/PyTrilinos/__init__.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/src/gen_teuchos_rcp.py.in b/packages/PyTrilinos/src/gen_teuchos_rcp.py.in
index ac4ac19bc823..f56c3b12dfc3 100755
--- a/packages/PyTrilinos/src/gen_teuchos_rcp.py.in
+++ b/packages/PyTrilinos/src/gen_teuchos_rcp.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
import glob
diff --git a/packages/PyTrilinos/src/scripts/CMakeLists.txt b/packages/PyTrilinos/src/scripts/CMakeLists.txt
index a30e4ff1a47b..4cbacec449a6 100644
--- a/packages/PyTrilinos/src/scripts/CMakeLists.txt
+++ b/packages/PyTrilinos/src/scripts/CMakeLists.txt
@@ -43,7 +43,7 @@
# @HEADER
ADD_CUSTOM_COMMAND(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/testutil.py
- COMMAND ${PYTHON_EXECUTABLE}
+ COMMAND ${Python3_EXECUTABLE}
${PyTrilinos_BINARY_DIR}/util/copyWithCMakeSubstitutions.py
${CMAKE_CURRENT_SOURCE_DIR}/testutil.py.in
${CMAKE_CURRENT_BINARY_DIR}/testutil.py
@@ -55,7 +55,7 @@ ADD_CUSTOM_TARGET(PyTrilinos_Scripts_testutil ALL
MACRO(PyTrilinos_MAKE_SCRIPT SCRIPT_NAME)
ADD_CUSTOM_COMMAND(OUTPUT ${SCRIPT_NAME}.py
- COMMAND ${PYTHON_EXECUTABLE}
+ COMMAND ${Python3_EXECUTABLE}
${PyTrilinos_BINARY_DIR}/util/copyWithCMakeSubstitutions.py
${CMAKE_CURRENT_SOURCE_DIR}/${SCRIPT_NAME}.py.in
${CMAKE_CURRENT_BINARY_DIR}/${SCRIPT_NAME}.py
diff --git a/packages/PyTrilinos/src/scripts/IsorropiaVisualizer.py.in b/packages/PyTrilinos/src/scripts/IsorropiaVisualizer.py.in
index 1a319fe5c2d3..0c0d613bd5be 100755
--- a/packages/PyTrilinos/src/scripts/IsorropiaVisualizer.py.in
+++ b/packages/PyTrilinos/src/scripts/IsorropiaVisualizer.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# TODO:
diff --git a/packages/PyTrilinos/src/scripts/testutil.py.in b/packages/PyTrilinos/src/scripts/testutil.py.in
index 846ba26319c6..ee32ee8257e4 100644
--- a/packages/PyTrilinos/src/scripts/testutil.py.in
+++ b/packages/PyTrilinos/src/scripts/testutil.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/test/testAmesos.py.in b/packages/PyTrilinos/test/testAmesos.py.in
index 53837470a9b1..1378054c583a 100755
--- a/packages/PyTrilinos/test/testAmesos.py.in
+++ b/packages/PyTrilinos/test/testAmesos.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/test/testAnasazi.py.in b/packages/PyTrilinos/test/testAnasazi.py.in
index 23023f3a861e..764c1c4fd17e 100755
--- a/packages/PyTrilinos/test/testAnasazi.py.in
+++ b/packages/PyTrilinos/test/testAnasazi.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/test/testAztecOO.py.in b/packages/PyTrilinos/test/testAztecOO.py.in
index f991e98aa412..b807f561faf5 100755
--- a/packages/PyTrilinos/test/testAztecOO.py.in
+++ b/packages/PyTrilinos/test/testAztecOO.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/test/testEpetraExt_Coloring.py.in b/packages/PyTrilinos/test/testEpetraExt_Coloring.py.in
index 5322ddd55e09..47f910d8dcf1 100755
--- a/packages/PyTrilinos/test/testEpetraExt_Coloring.py.in
+++ b/packages/PyTrilinos/test/testEpetraExt_Coloring.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/test/testEpetraExt_HDF5.py.in b/packages/PyTrilinos/test/testEpetraExt_HDF5.py.in
index 8ea31e7fdb9c..051d9ee4c234 100755
--- a/packages/PyTrilinos/test/testEpetraExt_HDF5.py.in
+++ b/packages/PyTrilinos/test/testEpetraExt_HDF5.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/test/testEpetraExt_Property.py.in b/packages/PyTrilinos/test/testEpetraExt_Property.py.in
index 629f89bf3e5e..82ee253e1bb6 100755
--- a/packages/PyTrilinos/test/testEpetraExt_Property.py.in
+++ b/packages/PyTrilinos/test/testEpetraExt_Property.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/test/testEpetra_BlockMap.py.in b/packages/PyTrilinos/test/testEpetra_BlockMap.py.in
index d523e273cdd3..159fbae4b9db 100755
--- a/packages/PyTrilinos/test/testEpetra_BlockMap.py.in
+++ b/packages/PyTrilinos/test/testEpetra_BlockMap.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/test/testEpetra_Comm.py.in b/packages/PyTrilinos/test/testEpetra_Comm.py.in
index 81ebad421004..0dc7d6c2ddb3 100755
--- a/packages/PyTrilinos/test/testEpetra_Comm.py.in
+++ b/packages/PyTrilinos/test/testEpetra_Comm.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/test/testEpetra_CompObject.py.in b/packages/PyTrilinos/test/testEpetra_CompObject.py.in
index 408f30e27f48..e0d0bc923d11 100755
--- a/packages/PyTrilinos/test/testEpetra_CompObject.py.in
+++ b/packages/PyTrilinos/test/testEpetra_CompObject.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/test/testEpetra_CrsGraph.py.in b/packages/PyTrilinos/test/testEpetra_CrsGraph.py.in
index 877670766ffc..4147335f209f 100755
--- a/packages/PyTrilinos/test/testEpetra_CrsGraph.py.in
+++ b/packages/PyTrilinos/test/testEpetra_CrsGraph.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/test/testEpetra_CrsMatrix.py.in b/packages/PyTrilinos/test/testEpetra_CrsMatrix.py.in
index 223aa230986c..b1f8e68cd235 100755
--- a/packages/PyTrilinos/test/testEpetra_CrsMatrix.py.in
+++ b/packages/PyTrilinos/test/testEpetra_CrsMatrix.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/test/testEpetra_FEVector.py.in b/packages/PyTrilinos/test/testEpetra_FEVector.py.in
index 352c2bc4783a..7eaf90871602 100755
--- a/packages/PyTrilinos/test/testEpetra_FEVector.py.in
+++ b/packages/PyTrilinos/test/testEpetra_FEVector.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/test/testEpetra_ImportExport.py.in b/packages/PyTrilinos/test/testEpetra_ImportExport.py.in
index 3a578048c68a..08f25a5379eb 100755
--- a/packages/PyTrilinos/test/testEpetra_ImportExport.py.in
+++ b/packages/PyTrilinos/test/testEpetra_ImportExport.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/test/testEpetra_IntSerialDense.py.in b/packages/PyTrilinos/test/testEpetra_IntSerialDense.py.in
index 11acc1d7096d..ec2077db5daa 100755
--- a/packages/PyTrilinos/test/testEpetra_IntSerialDense.py.in
+++ b/packages/PyTrilinos/test/testEpetra_IntSerialDense.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/test/testEpetra_IntVector.py.in b/packages/PyTrilinos/test/testEpetra_IntVector.py.in
index fe2ece2400b9..b7aa34971ded 100755
--- a/packages/PyTrilinos/test/testEpetra_IntVector.py.in
+++ b/packages/PyTrilinos/test/testEpetra_IntVector.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/test/testEpetra_LinearProblem.py.in b/packages/PyTrilinos/test/testEpetra_LinearProblem.py.in
index a69775f8eda1..d704ed688394 100755
--- a/packages/PyTrilinos/test/testEpetra_LinearProblem.py.in
+++ b/packages/PyTrilinos/test/testEpetra_LinearProblem.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/test/testEpetra_LocalMap.py.in b/packages/PyTrilinos/test/testEpetra_LocalMap.py.in
index 3d7625604d8c..10c453103e59 100755
--- a/packages/PyTrilinos/test/testEpetra_LocalMap.py.in
+++ b/packages/PyTrilinos/test/testEpetra_LocalMap.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/test/testEpetra_Map.py.in b/packages/PyTrilinos/test/testEpetra_Map.py.in
index 639068f2490d..bd3900a1ec7a 100755
--- a/packages/PyTrilinos/test/testEpetra_Map.py.in
+++ b/packages/PyTrilinos/test/testEpetra_Map.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/test/testEpetra_MapColoring.py.in b/packages/PyTrilinos/test/testEpetra_MapColoring.py.in
index e7e960ed2dae..8dd64c962d9c 100755
--- a/packages/PyTrilinos/test/testEpetra_MapColoring.py.in
+++ b/packages/PyTrilinos/test/testEpetra_MapColoring.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/test/testEpetra_MultiVector.py.in b/packages/PyTrilinos/test/testEpetra_MultiVector.py.in
index ed41555a6fd0..b33b38a9d04f 100755
--- a/packages/PyTrilinos/test/testEpetra_MultiVector.py.in
+++ b/packages/PyTrilinos/test/testEpetra_MultiVector.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/test/testEpetra_Object.py.in b/packages/PyTrilinos/test/testEpetra_Object.py.in
index e3be8ccc18eb..b714ad57e0e0 100755
--- a/packages/PyTrilinos/test/testEpetra_Object.py.in
+++ b/packages/PyTrilinos/test/testEpetra_Object.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/test/testEpetra_SerialDense.py.in b/packages/PyTrilinos/test/testEpetra_SerialDense.py.in
index 51c4a6551a4f..2210b3907e40 100755
--- a/packages/PyTrilinos/test/testEpetra_SerialDense.py.in
+++ b/packages/PyTrilinos/test/testEpetra_SerialDense.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/test/testEpetra_Time.py.in b/packages/PyTrilinos/test/testEpetra_Time.py.in
index 7a33c8f6e15c..cc82a7a57103 100755
--- a/packages/PyTrilinos/test/testEpetra_Time.py.in
+++ b/packages/PyTrilinos/test/testEpetra_Time.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/test/testEpetra_Util.py.in b/packages/PyTrilinos/test/testEpetra_Util.py.in
index 33e66c4e40e2..278823382141 100755
--- a/packages/PyTrilinos/test/testEpetra_Util.py.in
+++ b/packages/PyTrilinos/test/testEpetra_Util.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/test/testEpetra_Vector.py.in b/packages/PyTrilinos/test/testEpetra_Vector.py.in
index 0b40f57e575f..eaa5942d5db6 100755
--- a/packages/PyTrilinos/test/testEpetra_Vector.py.in
+++ b/packages/PyTrilinos/test/testEpetra_Vector.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/test/testGaleri_CrsMatrices.py.in b/packages/PyTrilinos/test/testGaleri_CrsMatrices.py.in
index 66f1fbc7a23b..eba9f00c69a8 100755
--- a/packages/PyTrilinos/test/testGaleri_CrsMatrices.py.in
+++ b/packages/PyTrilinos/test/testGaleri_CrsMatrices.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/test/testGaleri_Maps.py.in b/packages/PyTrilinos/test/testGaleri_Maps.py.in
index c9c3b0c4cbd2..0acd72c402fc 100755
--- a/packages/PyTrilinos/test/testGaleri_Maps.py.in
+++ b/packages/PyTrilinos/test/testGaleri_Maps.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/test/testIFPACK.py.in b/packages/PyTrilinos/test/testIFPACK.py.in
index 05c1567ab06f..60613f3105f9 100755
--- a/packages/PyTrilinos/test/testIFPACK.py.in
+++ b/packages/PyTrilinos/test/testIFPACK.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/test/testIsorropia.py.in b/packages/PyTrilinos/test/testIsorropia.py.in
index 87e5099bbcb9..ae8002c0cf92 100755
--- a/packages/PyTrilinos/test/testIsorropia.py.in
+++ b/packages/PyTrilinos/test/testIsorropia.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/test/testKomplex_LinearProblem.py.in b/packages/PyTrilinos/test/testKomplex_LinearProblem.py.in
index 6d6f8b91fcb4..8489174dc236 100755
--- a/packages/PyTrilinos/test/testKomplex_LinearProblem.py.in
+++ b/packages/PyTrilinos/test/testKomplex_LinearProblem.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/test/testLOCA.py.in b/packages/PyTrilinos/test/testLOCA.py.in
index f41db067693b..97f14791dd47 100755
--- a/packages/PyTrilinos/test/testLOCA.py.in
+++ b/packages/PyTrilinos/test/testLOCA.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/test/testML_CompObject.py.in b/packages/PyTrilinos/test/testML_CompObject.py.in
index ede735a8651b..ae827a4dcb9c 100755
--- a/packages/PyTrilinos/test/testML_CompObject.py.in
+++ b/packages/PyTrilinos/test/testML_CompObject.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/test/testML_MultiVector.py.in b/packages/PyTrilinos/test/testML_MultiVector.py.in
index aea1919eb942..267026731d99 100755
--- a/packages/PyTrilinos/test/testML_MultiVector.py.in
+++ b/packages/PyTrilinos/test/testML_MultiVector.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/test/testML_Preconditioner.py.in b/packages/PyTrilinos/test/testML_Preconditioner.py.in
index 2a5ddc99b507..04a6c87779a5 100755
--- a/packages/PyTrilinos/test/testML_Preconditioner.py.in
+++ b/packages/PyTrilinos/test/testML_Preconditioner.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/test/testML_PyMatrix.py.in b/packages/PyTrilinos/test/testML_PyMatrix.py.in
index ef0344371636..5e0aab4c3e73 100755
--- a/packages/PyTrilinos/test/testML_PyMatrix.py.in
+++ b/packages/PyTrilinos/test/testML_PyMatrix.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/test/testML_Space.py.in b/packages/PyTrilinos/test/testML_Space.py.in
index c332d1e4ec00..4ce1c5b4d0c4 100755
--- a/packages/PyTrilinos/test/testML_Space.py.in
+++ b/packages/PyTrilinos/test/testML_Space.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/test/testML_TimeObject.py.in b/packages/PyTrilinos/test/testML_TimeObject.py.in
index 4f10253e62ca..9a580277632e 100755
--- a/packages/PyTrilinos/test/testML_TimeObject.py.in
+++ b/packages/PyTrilinos/test/testML_TimeObject.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/test/testNOX_StatusTest.py.in b/packages/PyTrilinos/test/testNOX_StatusTest.py.in
index ce15bc66e34d..8e0e411fee5f 100755
--- a/packages/PyTrilinos/test/testNOX_StatusTest.py.in
+++ b/packages/PyTrilinos/test/testNOX_StatusTest.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/test/testPliris.py.in b/packages/PyTrilinos/test/testPliris.py.in
index 97fb331587eb..1d7fb0008904 100755
--- a/packages/PyTrilinos/test/testPliris.py.in
+++ b/packages/PyTrilinos/test/testPliris.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/test/testTeuchos.py.in b/packages/PyTrilinos/test/testTeuchos.py.in
index b24701d107d1..cdb50cd14065 100755
--- a/packages/PyTrilinos/test/testTeuchos.py.in
+++ b/packages/PyTrilinos/test/testTeuchos.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/test/testTeuchos_Comm.py.in b/packages/PyTrilinos/test/testTeuchos_Comm.py.in
index bee34ae07e7b..2d61efe2f356 100755
--- a/packages/PyTrilinos/test/testTeuchos_Comm.py.in
+++ b/packages/PyTrilinos/test/testTeuchos_Comm.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/test/testTeuchos_ParameterList.py.in b/packages/PyTrilinos/test/testTeuchos_ParameterList.py.in
index cd4004361e3c..ce00e6cfbddd 100755
--- a/packages/PyTrilinos/test/testTeuchos_ParameterList.py.in
+++ b/packages/PyTrilinos/test/testTeuchos_ParameterList.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/test/testTeuchos_RCP.py.in b/packages/PyTrilinos/test/testTeuchos_RCP.py.in
index c36340441955..1260c3338f45 100755
--- a/packages/PyTrilinos/test/testTeuchos_RCP.py.in
+++ b/packages/PyTrilinos/test/testTeuchos_RCP.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/test/testTeuchos_ScalarTraits.py.in b/packages/PyTrilinos/test/testTeuchos_ScalarTraits.py.in
index 2386d947fa23..1f454b028ece 100755
--- a/packages/PyTrilinos/test/testTeuchos_ScalarTraits.py.in
+++ b/packages/PyTrilinos/test/testTeuchos_ScalarTraits.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/test/testThyra.py.in b/packages/PyTrilinos/test/testThyra.py.in
index 59d25b36de1d..2c30b5cb0022 100755
--- a/packages/PyTrilinos/test/testThyra.py.in
+++ b/packages/PyTrilinos/test/testThyra.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/test/testTpetra_Map.py.in b/packages/PyTrilinos/test/testTpetra_Map.py.in
index 6819b4d6c177..2655f44d3ec5 100755
--- a/packages/PyTrilinos/test/testTpetra_Map.py.in
+++ b/packages/PyTrilinos/test/testTpetra_Map.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/test/testTpetra_MultiVector.py.in b/packages/PyTrilinos/test/testTpetra_MultiVector.py.in
index 4c30729b6c9a..2f709404533e 100755
--- a/packages/PyTrilinos/test/testTpetra_MultiVector.py.in
+++ b/packages/PyTrilinos/test/testTpetra_MultiVector.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/test/testTpetra_Vector.py.in b/packages/PyTrilinos/test/testTpetra_Vector.py.in
index 34ab9d87e08a..e9e228089507 100755
--- a/packages/PyTrilinos/test/testTpetra_Vector.py.in
+++ b/packages/PyTrilinos/test/testTpetra_Vector.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/test/testTriUtils.py.in b/packages/PyTrilinos/test/testTriUtils.py.in
index c9bdb16ae584..46e10421c8c4 100755
--- a/packages/PyTrilinos/test/testTriUtils.py.in
+++ b/packages/PyTrilinos/test/testTriUtils.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/test/testutil.py.in b/packages/PyTrilinos/test/testutil.py.in
index 86efd2f5e412..498a4ad18cbb 100644
--- a/packages/PyTrilinos/test/testutil.py.in
+++ b/packages/PyTrilinos/test/testutil.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# -*- python -*-
# @HEADER
diff --git a/packages/PyTrilinos/util/CMakeCacheVariables.py.in b/packages/PyTrilinos/util/CMakeCacheVariables.py.in
index 9b22d3ec29bd..738bce362240 100755
--- a/packages/PyTrilinos/util/CMakeCacheVariables.py.in
+++ b/packages/PyTrilinos/util/CMakeCacheVariables.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# @HEADER
# ***********************************************************************
diff --git a/packages/PyTrilinos/util/MakefileVariables.py.in b/packages/PyTrilinos/util/MakefileVariables.py.in
index 5df302598180..688379d7acd5 100755
--- a/packages/PyTrilinos/util/MakefileVariables.py.in
+++ b/packages/PyTrilinos/util/MakefileVariables.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# @HEADER
# ***********************************************************************
diff --git a/packages/PyTrilinos/util/configFix.py.in b/packages/PyTrilinos/util/configFix.py.in
index e9b476ffca33..6783ab3cc357 100755
--- a/packages/PyTrilinos/util/configFix.py.in
+++ b/packages/PyTrilinos/util/configFix.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# @HEADER
# ***********************************************************************
diff --git a/packages/PyTrilinos/util/copyWithCMakeSubstitutions.py.in b/packages/PyTrilinos/util/copyWithCMakeSubstitutions.py.in
index ee76cca284d8..6e7950e61515 100755
--- a/packages/PyTrilinos/util/copyWithCMakeSubstitutions.py.in
+++ b/packages/PyTrilinos/util/copyWithCMakeSubstitutions.py.in
@@ -1,4 +1,4 @@
-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
# @HEADER
# ***********************************************************************
diff --git a/packages/PyTrilinos2/CMakeLists.txt b/packages/PyTrilinos2/CMakeLists.txt
index 8f22df527dda..d912b7efe078 100644
--- a/packages/PyTrilinos2/CMakeLists.txt
+++ b/packages/PyTrilinos2/CMakeLists.txt
@@ -33,14 +33,14 @@ TRIBITS_ADD_OPTION_AND_DEFINE(PyTrilinos2_BINDER_VERBOSE
SET(PyTrilinos2_BINDER_NUM_FILES "100" CACHE STRING "Maxinum number of generated files by binder.")
-MESSAGE("-- PYTHON_EXECUTABLE:")
-IF(NOT DEFINED ${PYTHON_EXECUTABLE})
- find_program(PYTHON_EXECUTABLE
+MESSAGE("-- Python3_EXECUTABLE:")
+IF(NOT DEFINED ${Python3_EXECUTABLE})
+ find_program(Python3_EXECUTABLE
NAMES python3 python
)
- MESSAGE(" -- CMake has set: PYTHON_EXECUTABLE = ${PYTHON_EXECUTABLE}")
+ MESSAGE(" -- CMake has set: Python3_EXECUTABLE = ${Python3_EXECUTABLE}")
ELSE()
- MESSAGE(" -- User has set: PYTHON_EXECUTABLE = ${PYTHON_EXECUTABLE}")
+ MESSAGE(" -- User has set: Python3_EXECUTABLE = ${Python3_EXECUTABLE}")
ENDIF()
function(get_all_include_dirs LIBRARY_NAME all_include_dirs all_visited_libs)
@@ -196,7 +196,7 @@ file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/src)
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/src/PyTrilinos2_Tpetra_ETI.hpp ${CMAKE_CURRENT_BINARY_DIR}/python/getTpetraTypeName.py
- COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/scripts/gather_ETI.py ${CMAKE_CURRENT_BINARY_DIR} ${all_ETI_files_list} ${all_ETI_classes_list} "src/PyTrilinos2_Tpetra_ETI.hpp"
+ COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/scripts/gather_ETI.py ${CMAKE_CURRENT_BINARY_DIR} ${all_ETI_files_list} ${all_ETI_classes_list} "src/PyTrilinos2_Tpetra_ETI.hpp"
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/include_tmp
)
add_custom_target(generate_ETI_name DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/src/PyTrilinos2_Tpetra_ETI.hpp ${CMAKE_CURRENT_BINARY_DIR}/include_tmp)
@@ -206,7 +206,7 @@ list (APPEND PyTrilinos2PyFiles ${PyTrilinos2PyFiles2})
add_custom_command(
OUTPUT ${binder_include_name}
- COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/scripts/gather_includes.py ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${all_header_with_dir_list} ${all_header_without_dir_list} ${binder_include_name}
+ COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/scripts/gather_includes.py ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${all_header_with_dir_list} ${all_header_without_dir_list} ${binder_include_name}
DEPENDS generate_ETI_name ${CMAKE_CURRENT_BINARY_DIR}/include_tmp
)
add_custom_target(generate_include_name DEPENDS ${binder_include_name})
@@ -272,12 +272,12 @@ SET(PyTrilinos2_INSTALL_PREFIX ${PyTrilinos2_DEFAULT_INSTALL_PREFIX}
CACHE PATH "The path prefix for where PyTrilinos2 will be installed, e.g. /usr/local")
# Get the python version
-EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c
+EXECUTE_PROCESS(COMMAND ${Python3_EXECUTABLE} -c
"import sys; print(sys.version_info.major)"
OUTPUT_VARIABLE PYTHON_MAJOR_VERSION
OUTPUT_STRIP_TRAILING_WHITESPACE
)
-EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c
+EXECUTE_PROCESS(COMMAND ${Python3_EXECUTABLE} -c
"import sys; print(sys.version_info.minor)"
OUTPUT_VARIABLE PYTHON_MINOR_VERSION
OUTPUT_STRIP_TRAILING_WHITESPACE
@@ -300,7 +300,7 @@ INSTALL(FILES
# Find the pybind11 CMake module
EXECUTE_PROCESS(COMMAND
- ${PYTHON_EXECUTABLE} -c "import pybind11; print(pybind11.get_cmake_dir())"
+ ${Python3_EXECUTABLE} -c "import pybind11; print(pybind11.get_cmake_dir())"
OUTPUT_VARIABLE pybind11_DIR
ERROR_VARIABLE pybind11_CMAKE_ERROR
OUTPUT_STRIP_TRAILING_WHITESPACE
@@ -310,7 +310,7 @@ MESSAGE(STATUS "pybind11 CMake path: ${pybind11_DIR}")
find_package(pybind11 REQUIRED)
EXECUTE_PROCESS(COMMAND
- ${PYTHON_EXECUTABLE} -c "import mpi4py; print(mpi4py.get_include())"
+ ${Python3_EXECUTABLE} -c "import mpi4py; print(mpi4py.get_include())"
OUTPUT_VARIABLE Mpi4Py_INCLUDE_DIR
ERROR_VARIABLE Mpi4Py_INCLUDE_ERROR
OUTPUT_STRIP_TRAILING_WHITESPACE
@@ -323,7 +323,7 @@ ELSE()
ENDIF()
EXECUTE_PROCESS(COMMAND
- ${PYTHON_EXECUTABLE} -c "import mpi4py; print(mpi4py.get_config()['mpicxx'])"
+ ${Python3_EXECUTABLE} -c "import mpi4py; print(mpi4py.get_config()['mpicxx'])"
OUTPUT_VARIABLE Mpi4Py_MPICXX
OUTPUT_STRIP_TRAILING_WHITESPACE
)
diff --git a/packages/PyTrilinos2/README.md b/packages/PyTrilinos2/README.md
index d5221b26e29b..f777f230041b 100644
--- a/packages/PyTrilinos2/README.md
+++ b/packages/PyTrilinos2/README.md
@@ -48,7 +48,7 @@ cmake -S ../llvm/llvm -DLLVM_ENABLE_PROJECTS="clang;libcxx;libcxxabi;clang-tools
```
-D Trilinos_ENABLE_PyTrilinos2:BOOL=ON \
--D PYTHON_EXECUTABLE=... \
+-D Python3_EXECUTABLE=... \
-D PyTrilinos2_ENABLE_TESTS=ON \
-D PyTrilinos2_BINDER_EXECUTABLE=... \
-D PyTrilinos2_BINDER_GCC_TOOLCHAIN=...\
diff --git a/packages/PyTrilinos2/cmake/PyTrilinos2MakeTest.cmake b/packages/PyTrilinos2/cmake/PyTrilinos2MakeTest.cmake
index 4950a10a246e..52691290a084 100644
--- a/packages/PyTrilinos2/cmake/PyTrilinos2MakeTest.cmake
+++ b/packages/PyTrilinos2/cmake/PyTrilinos2MakeTest.cmake
@@ -4,7 +4,7 @@ MACRO(PyTrilinos2_MAKE_MPI_TEST TEST_NAME)
FILE(COPY ${CMAKE_CURRENT_SOURCE_DIR}/${TEST_NAME}.py DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
TRIBITS_ADD_TEST(
- ${PYTHON_EXECUTABLE}
+ ${Python3_EXECUTABLE}
NOEXEPREFIX
NOEXESUFFIX
NAME ${TEST_NAME}
diff --git a/packages/compadre/examples/CMakeLists.tribits.cmake b/packages/compadre/examples/CMakeLists.tribits.cmake
index 523f31cae25d..3542e6a08425 100644
--- a/packages/compadre/examples/CMakeLists.tribits.cmake
+++ b/packages/compadre/examples/CMakeLists.tribits.cmake
@@ -518,7 +518,7 @@ if (NOT(Compadre_DEBUG OR Compadre_EXTREME_DEBUG))
# This test is too slow in DEBUG (3x longer than all other tests
# combined)
- if (PYTHON_EXECUTABLE)
+ if (Python3_EXECUTABLE)
# Python driven test of a C++ executable (Python changes command line
# arguments given to executable)
configure_file(
@@ -529,7 +529,7 @@ if (NOT(Compadre_DEBUG OR Compadre_EXTREME_DEBUG))
set(testName GMLS_Manifold_Multiple_Evaluation_Sites)
TRIBITS_ADD_ADVANCED_TEST(
${testName}
- TEST_0 CMND ${PYTHON_EXECUTABLE} ARGS ${CMAKE_CURRENT_BINARY_DIR}/GMLS_Manifold_Multiple_Evaluation_Sites.py --porder=3 --grids=3 --in-trilinos=True
+ TEST_0 CMND ${Python3_EXECUTABLE} ARGS ${CMAKE_CURRENT_BINARY_DIR}/GMLS_Manifold_Multiple_Evaluation_Sites.py --porder=3 --grids=3 --in-trilinos=True
PASS_REGULAR_EXPRESSION "Passed."
COMM mpi serial
ADDED_TEST_NAME_OUT ${testName}_CREATED
@@ -546,7 +546,7 @@ if (NOT(Compadre_DEBUG OR Compadre_EXTREME_DEBUG))
$