You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2020/12/23 06:56:22 UTC

[airflow] 01/02: Reset PIP version after eager upgrade (#13251)

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

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

commit 2320984d642f5f2f0543e362a103b180551e889c
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