Skip to content

Commit 3030e74

Browse files
committed
Capture stderr when creating the virtualenv to see if it adds any extra info
1 parent 029aa96 commit 3030e74

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

cmake/external/firestore_snappy.patch.txt

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -887,3 +887,29 @@ index 000000000..bdb7b9f6a
887887
+
888888
+ set("${ARG_OUTVAR}" "${PYTHON_EXECUTABLE}" PARENT_SCOPE)
889889
+endfunction(FirebaseSetupPythonInterpreter)
890+
diff --git a/cmake/python_setup.cmake b/cmake/python_setup.cmake
891+
index bdb7b9f6a..ebce71d96 100644
892+
--- a/cmake/python_setup.cmake
893+
+++ b/cmake/python_setup.cmake
894+
@@ -1,4 +1,4 @@
895+
-# Copyright 2022 Google LLC
896+
+
897+
#
898+
# Licensed under the Apache License, Version 2.0 (the "License");
899+
# you may not use this file except in compliance with the License.
900+
@@ -128,11 +128,14 @@ function(FirebaseSetupPythonInterpreter)
901+
"${PYVENV_DIRECTORY}"
902+
RESULT_VARIABLE
903+
FIREBASE_PYVENV_CREATE_RESULT
904+
+ ERROR_VARIABLE
905+
+ FIREBASE_PYVENV_CREATE_ERROR
906+
+ ERROR_STRIP_TRAILING_WHITESPACE
907+
)
908+
if(NOT FIREBASE_PYVENV_CREATE_RESULT EQUAL 0)
909+
message(FATAL_ERROR
910+
"Failed to create a Python virtualenv in ${PYVENV_DIRECTORY} "
911+
- "using ${FIREBASE_PYTHON_HOST_EXECUTABLE}")
912+
+ "using ${FIREBASE_PYTHON_HOST_EXECUTABLE}: ${FIREBASE_PYVENV_CREATE_ERROR}")
913+
endif()
914+
915+
# Find the Python interpreter in the virtualenv.

0 commit comments

Comments
 (0)