Skip to content

Commit 513b72c

Browse files
authored
Merge pull request #775 from mkstoyanov/fix_python_executable_path
Fix usage of the deprecated `PYTHON_EXECUTABLE`
2 parents 07c4ba7 + 18dd506 commit 513b72c

File tree

6 files changed

+4
-6
lines changed

6 files changed

+4
-6
lines changed

.github/workflows/build-ubuntu.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ jobs:
3636
-D CMAKE_CXX_FLAGS="-O3 -Wall -Wextra -Wshadow -pedantic"
3737
-D CMAKE_CXX_COMPILER=${{ matrix.compiler }}
3838
-D CMAKE_Fortran_COMPILER=${{ matrix.fortran_compiler }}
39-
-D PYTHON_EXECUTABLE=/usr/bin/python3
4039
-D Tasmanian_ENABLE_RECOMMENDED=ON
4140
-D Tasmanian_ENABLE_FORTRAN=ON
4241
-D Tasmanian_TESTS_OMP_NUM_THREADS=4 .. &&

.jenkins

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ cmake \
121121
-D CMAKE_BUILD_TYPE=Release \
122122
-D CMAKE_CXX_FLAGS="-Wall -Wextra -Wshadow" \
123123
-D CMAKE_CXX_COMPILER=/opt/rocm/bin/hipcc \
124-
-D PYTHON_EXECUTABLE=/usr/bin/python3 \
125124
-D Tasmanian_ENABLE_OPENMP=ON \
126125
-D Tasmanian_ENABLE_BLAS=ON \
127126
-D Tasmanian_ENABLE_CUDA=OFF \

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ set(Tasmanian_license "BSD 3-Clause with UT-Battelle disclaimer") # used in some
3030
# -D Tasmanian_EXTRA_LINK_DIRS:PATH="appends more link paths"
3131
#
3232
# Selecting specific packages for find_package()
33-
# -D PYTHON_EXECUTABLE:PATH
33+
# -D Python_ROOT_DIR:PATH
3434
# -D CMAKE_CUDA_COMPILER:PATH
3535
# -D Tasmanian_MAGMA_ROOT:PATH (or just MAGMA_ROOT)
3636
# -D MPI_CXX_COMPILER

InterfacePython/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ unset(_tsg_opt)
3434
########################################################################
3535
# Stage 1: Build folder paths
3636
########################################################################
37-
set(Tasmanian_string_python_hashbang "${PYTHON_EXECUTABLE}")
37+
set(Tasmanian_string_python_hashbang "${Python_EXECUTABLE}")
3838

3939
if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
4040
# windows puts the temp .dll files in Release or Debug subfolder, as opposed to directly in ${CMAKE_CURRENT_BINARY_DIR}

InterfacePython/testTSG.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python3
22

33
# The hash-bang is used only but the GNU Make build system
4-
# The CMake build system uses the PYTHON_EXECUTABLE and ignores the hash-bang.
4+
# The CMake build system ignores the hash-bang and uses the executable from find_package().
55

66
import unittest
77
import TasmanianSG

Tasgrid/tasgridLogs.in.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ CMAKE_CUDA_FLAGS_DEBUG @CMAKE_CUDA_FLAGS_DEBUG@
5656
CMAKE_CUDA_FLAGS_RELEASE @CMAKE_CUDA_FLAGS_RELEASE@
5757
Tasmanian_cudamathlibs @Tasmanian_cudamathlibs@
5858
Tasmanian_cudaruntime @Tasmanian_cudaruntime@
59-
PYTHON_EXECUTABLE @PYTHON_EXECUTABLE@
59+
Python_EXECUTABLE @Python_EXECUTABLE@
6060
BUILD_SHARED_LIBS @BUILD_SHARED_LIBS@
6161
BLAS_LIBRARIES @BLAS_LIBRARIES@
6262
LAPACK_LIBRARIES @LAPACK_LIBRARIES@

0 commit comments

Comments
 (0)