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

fix(ci): use --without-pip venv + get-pip.py for stripped host Python

Host Python 3.13 lacks both pip and ensurepip modules, so python3 -m venv
fails. Create venv with --without-pip, then bootstrap pip via get-pip.py.
parent 9d7f9e1f
Loading
Loading
Loading
Loading
Loading
+6 −3
Changes for .gitlab-ci.yml: 6 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -19,8 +19,9 @@ cache:
.ansible_setup:
  before_script:
    - python3 --version
    - python3 -m venv .venv
    - python3 -m venv --without-pip .venv
    - source .venv/bin/activate
    - curl -sS https://bootstrap.pypa.io/get-pip.py | python3
    - pip install --upgrade pip
    - pip install -r ansible/requirements.txt
    - ansible-galaxy collection install -r ansible/requirements.yml
@@ -69,8 +70,9 @@ docs:
  stage: docs
  script:
    - python3 --version
    - python3 -m venv .venv
    - python3 -m venv --without-pip .venv
    - source .venv/bin/activate
    - curl -sS https://bootstrap.pypa.io/get-pip.py | python3
    - pip install --upgrade pip
    - pip install -r docs/requirements.txt
    - mkdocs build --strict
@@ -83,8 +85,9 @@ pages:
  stage: deploy
  script:
    - python3 --version
    - python3 -m venv .venv
    - python3 -m venv --without-pip .venv
    - source .venv/bin/activate
    - curl -sS https://bootstrap.pypa.io/get-pip.py | python3
    - pip install --upgrade pip
    - pip install -r docs/requirements.txt
    - mkdocs build --strict