Commit d56e8b00 authored by Kamil Trzciński's avatar Kamil Trzciński 💬

Merge branch '52408-pip-cache-dir-to-cache-python-dependencies' into 'master'

Use the standard PIP_CACHE_DIR for Python dependency caching template

Closes #52408

See merge request !22211
parents 1a66012c af013d34
Pipeline #32396265 passed with stages
in 42 minutes and 39 seconds
---
title: Use the standard PIP_CACHE_DIR for Python dependency caching template
merge_request: 22211
author: Takuya Noguchi
type: fixed
......@@ -253,7 +253,7 @@ image: python:latest
# Change pip's cache directory to be inside the project directory since we can
# only cache local items.
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache"
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
# Pip's cache doesn't store the python packages
# https://pip.pypa.io/en/stable/reference/pip_install/#caching
......@@ -262,7 +262,7 @@ variables:
# them in a virtualenv and cache it as well.
cache:
paths:
- .cache/
- .cache/pip
- venv/
before_script:
......
......@@ -5,7 +5,7 @@ image: python:latest
# Change pip's cache directory to be inside the project directory since we can
# only cache local items.
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache"
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
# Pip's cache doesn't store the python packages
# https://pip.pypa.io/en/stable/reference/pip_install/#caching
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment