File tree 1 file changed +26
-0
lines changed 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -887,3 +887,29 @@ index 000000000..bdb7b9f6a
887
887
+
888
888
+ set("${ARG_OUTVAR}" "${PYTHON_EXECUTABLE}" PARENT_SCOPE)
889
889
+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.
You can’t perform that action at this time.
0 commit comments