We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05a216b commit e38e05fCopy full SHA for e38e05f
1 file changed
cmake/python_setup.cmake
@@ -152,14 +152,28 @@ function(FirebaseSetupPythonInterpreter)
152
"${LOG_PREFIX}: Installing Python dependencies into "
153
"${PYVENV_DIRECTORY}: ${ARG_REQUIREMENTS}"
154
)
155
- firebase_execute_process(
+ execute_process(
156
COMMAND
157
"${PYTHON_EXECUTABLE}"
158
-m
159
pip
160
install
161
${ARG_REQUIREMENTS}
162
+ RESULT_VARIABLE PIP_INSTALL_STATUS
163
164
+ if(NOT PIP_INSTALL_STATUS EQUAL 0)
165
+ message(STATUS "${LOG_PREFIX}: pip install failed. Retrying with public PyPI index...")
166
+ firebase_execute_process(
167
+ COMMAND
168
+ "${PYTHON_EXECUTABLE}"
169
+ -m
170
+ pip
171
+ install
172
+ --index-url
173
+ https://pypi.org/simple
174
+ ${ARG_REQUIREMENTS}
175
+ )
176
+ endif()
177
endif()
178
179
# Write the stamp files.
0 commit comments