@@ -68,6 +68,8 @@ function(FirebaseSetupPythonInterpreter)
68
68
# Python interpreter path.
69
69
set (CACHEVAR "FIREBASE_PYTHON_EXECUTABLE_${ARG_KEY} " )
70
70
71
+ set (LOG_PREFIX "${CMAKE_CURRENT_FUNCTION} (${ARG_KEY} )" )
72
+
71
73
# Find a Python interpreter using the best available mechanism.
72
74
if (${CMAKE_VERSION} VERSION_LESS "3.12" )
73
75
include (FindPythonInterp )
@@ -105,17 +107,15 @@ function(FirebaseSetupPythonInterpreter)
105
107
("${STAMP_FILE2_CONTENTS} " STREQUAL "${ARG_REQUIREMENTS} " )
106
108
)
107
109
set ("${ARG_OUTVAR} " "$CACHE{${CACHEVAR} }" PARENT_SCOPE )
108
- message (STATUS
109
- "${CMAKE_CURRENT_FUNCTION} : Using Python interpreter: $CACHE{${CACHEVAR} }"
110
- )
110
+ message (STATUS "${LOG_PREFIX} : Using Python interpreter: $CACHE{${CACHEVAR} }" )
111
111
return ()
112
112
endif ()
113
113
endif ()
114
114
115
115
# Create the virtualenv.
116
116
message (STATUS
117
- "${CMAKE_CURRENT_FUNCTION } : Creating Python virtualenv in "
118
- "${PYVENV_DIRECTORY} using ${FIREBASE_PYTHON_HOST_EXECUTABLE} "
117
+ "${LOG_PREFIX } : Creating Python virtualenv in ${PYVENV_DIRECTORY} "
118
+ "using ${FIREBASE_PYTHON_HOST_EXECUTABLE} "
119
119
)
120
120
file (REMOVE_RECURSE "${PYVENV_DIRECTORY} " )
121
121
execute_process (
@@ -124,7 +124,6 @@ function(FirebaseSetupPythonInterpreter)
124
124
-m
125
125
venv
126
126
"${PYVENV_DIRECTORY} "
127
- --upgrade-deps
128
127
RESULT_VARIABLE
129
128
FIREBASE_PYVENV_CREATE_RESULT
130
129
)
@@ -147,16 +146,13 @@ function(FirebaseSetupPythonInterpreter)
147
146
message (FATAL_ERROR "Unable to find Python executable in ${PYVENV_DIRECTORY} " )
148
147
else ()
149
148
set (PYTHON_EXECUTABLE "$CACHE{${CACHEVAR} }" )
150
- message (STATUS
151
- "${CMAKE_CURRENT_FUNCTION} : Found Python executable in virtualenv: "
152
- "${PYTHON_EXECUTABLE} "
153
- )
149
+ message (STATUS "${LOG_PREFIX} : Found Python executable in virtualenv: ${PYTHON_EXECUTABLE} " )
154
150
endif ()
155
151
156
152
# Install the dependencies in the virtualenv, if any are requested.
157
153
if (NOT ("${ARG_REQUIREMENTS} " STREQUAL "" ))
158
154
message (STATUS
159
- "${CMAKE_CURRENT_FUNCTION } : Installing Python dependencies into "
155
+ "${LOG_PREFIX } : Installing Python dependencies into "
160
156
"${PYVENV_DIRECTORY} : ${ARG_REQUIREMENTS} "
161
157
)
162
158
execute_process (
0 commit comments