mirror of
https://github.com/firebase/firebase-ios-sdk
synced 2026-11-09 22:36:01 +05:45
build: add PyPI fallback to Python setup (#16228)
This commit is contained in:
1 parent
05a216b357
commit
e38e05ff4a
1 file changed
+15
-1
@@ -152,14 +152,28 @@ function(FirebaseSetupPythonInterpreter)
|
||||
"${LOG_PREFIX}: Installing Python dependencies into "
|
||||
"${PYVENV_DIRECTORY}: ${ARG_REQUIREMENTS}"
|
||||
)
|
||||
firebase_execute_process(
|
||||
execute_process(
|
||||
COMMAND
|
||||
"${PYTHON_EXECUTABLE}"
|
||||
-m
|
||||
pip
|
||||
install
|
||||
${ARG_REQUIREMENTS}
|
||||
RESULT_VARIABLE PIP_INSTALL_STATUS
|
||||
)
|
||||
if(NOT PIP_INSTALL_STATUS EQUAL 0)
|
||||
message(STATUS "${LOG_PREFIX}: pip install failed. Retrying with public PyPI index...")
|
||||
firebase_execute_process(
|
||||
COMMAND
|
||||
"${PYTHON_EXECUTABLE}"
|
||||
-m
|
||||
pip
|
||||
install
|
||||
--index-url
|
||||
https://pypi.org/simple
|
||||
${ARG_REQUIREMENTS}
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# Write the stamp files.
|
||||
|
||||
Reference in new issue
Block a user