Commit af013d34 authored by Takuya Noguchi's avatar Takuya Noguchi

Use the standard PIP_CACHE_DIR for Python dependency caching template

Signed-off-by: default avatarTakuya Noguchi <takninnovationresearch@gmail.com>
parent c90d3404
---
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 ...@@ -253,7 +253,7 @@ image: python:latest
# Change pip's cache directory to be inside the project directory since we can # Change pip's cache directory to be inside the project directory since we can
# only cache local items. # only cache local items.
variables: 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 # Pip's cache doesn't store the python packages
# https://pip.pypa.io/en/stable/reference/pip_install/#caching # https://pip.pypa.io/en/stable/reference/pip_install/#caching
...@@ -262,7 +262,7 @@ variables: ...@@ -262,7 +262,7 @@ variables:
# them in a virtualenv and cache it as well. # them in a virtualenv and cache it as well.
cache: cache:
paths: paths:
- .cache/ - .cache/pip
- venv/ - venv/
before_script: before_script:
......
...@@ -5,7 +5,7 @@ image: python:latest ...@@ -5,7 +5,7 @@ image: python:latest
# Change pip's cache directory to be inside the project directory since we can # Change pip's cache directory to be inside the project directory since we can
# only cache local items. # only cache local items.
variables: 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 # Pip's cache doesn't store the python packages
# https://pip.pypa.io/en/stable/reference/pip_install/#caching # 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