You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ka...@apache.org on 2021/01/21 20:19:56 UTC

[airflow] 31/44: Reset PIP version after eager upgrade (#13251)

This is an automated email from the ASF dual-hosted git repository.

kaxilnaik pushed a commit to branch v1-10-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit b22cd926c52597242d60c0d26facae2d4e32194e
Author: Jarek Potiuk <ja...@polidea.com>
AuthorDate: Tue Dec 22 14:23:54 2020 +0100

    Reset PIP version after eager upgrade (#13251)
    
    PIP upgrades itself after eager update, and since we (for now)
    stick with the 20.2.4 version we want to reset PIP to that
    version after eager upgrade.
    
    (cherry picked from commit c44092f8df9aa8555ef594d9fae4f28011a3a5a6)
---
 Dockerfile.ci | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Dockerfile.ci b/Dockerfile.ci
index 67e5bb1..9a39aa1 100644
--- a/Dockerfile.ci
+++ b/Dockerfile.ci
@@ -320,8 +320,10 @@ ENV UPGRADE_TO_LATEST_CONSTRAINTS=${UPGRADE_TO_LATEST_CONSTRAINTS}
 RUN if [[ ${INSTALL_FROM_PYPI} == "true" ]]; then \
         if [[ "${UPGRADE_TO_LATEST_CONSTRAINTS}" != "false" ]]; then \
             pip install -e ".[${AIRFLOW_EXTRAS}]" --upgrade --upgrade-strategy eager; \
+            pip install --upgrade "pip==${PIP_VERSION}"; \
         else \
             pip install -e ".[${AIRFLOW_EXTRAS}]" --upgrade --upgrade-strategy only-if-needed; \
+            pip install --upgrade "pip==${PIP_VERSION}"; \
         fi; \
     fi