Commit fa5626cb authored by Sergio Gimenez's avatar Sergio Gimenez
Browse files

fix(ci): use get-pip.py to bootstrap pip on stripped host Python

Host Python 3.13 has both pip and ensurepip modules stripped.
Falling back to official bootstrap.pypa.io/get-pip.py when pip missing.
parent 76ae8285
Loading
Loading
Loading
Loading
Loading
+3 −3
Changes for .gitlab-ci.yml: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@ cache:
.ansible_setup:
  before_script:
    - python3 --version
    - python3 -m ensurepip --upgrade 2>/dev/null || python3 -m ensurepip
    - python3 -m pip install --upgrade pip 2>/dev/null || curl -sS https://bootstrap.pypa.io/get-pip.py | python3
    - python3 -m pip install --upgrade pip
    - python3 -m pip install -r ansible/requirements.txt
    - ansible-galaxy collection install -r ansible/requirements.yml
@@ -65,7 +65,7 @@ docs:
  stage: docs
  script:
    - python3 --version
    - python3 -m ensurepip --upgrade 2>/dev/null || python3 -m ensurepip
    - python3 -m pip install --upgrade pip 2>/dev/null || curl -sS https://bootstrap.pypa.io/get-pip.py | python3
    - python3 -m pip install --upgrade pip
    - python3 -m pip install -r docs/requirements.txt
    - python3 -m mkdocs build --strict
@@ -78,7 +78,7 @@ pages:
  stage: deploy
  script:
    - python3 --version
    - python3 -m ensurepip --upgrade 2>/dev/null || python3 -m ensurepip
    - python3 -m pip install --upgrade pip 2>/dev/null || curl -sS https://bootstrap.pypa.io/get-pip.py | python3
    - python3 -m pip install --upgrade pip
    - python3 -m pip install -r docs/requirements.txt
    - python3 -m mkdocs build --strict