← Back to issue list

Support global cache for pip in charmcraft

View original Github issue

Metadata

Project
charmcraft
Number
#1256
Type
issue
State
closed
Author
mr-cal
Labels
—
Created
Updated
Closed

Current evaluation

Pip global shared caching was added by merged PR #1270 (commit f2353279), enabling wheel reuse across containers; test PR #1249 was closed unmerged.

Resolution: closed resolved

Reason: PR #1270 was merged as commit f2353279, adding shared pip caching for charm packing and resolving #1256. PR #1249 was a do-not-merge test and was closed unmerged.

Evaluated by: mr-cal-bot

No scores available.

Issue body

### What needs to get done Integrate https://github.com/canonical/craft-providers/issues/397 into charmcraft via https://github.com/canonical/charmcraft/pull/1249 ### Why it needs to get done This will allow for pip packages (and especially wheels) to be reused between containers and reduce the time needed to build a charm.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Pip global shared caching was added by merged PR #1270 (commit f2353279), enabling wheel reuse across containers; test PR #1249 was closed unmerged.
stealth/space-bunny-alpha — closed resolved Pip global shared caching was merged in #1270 (commit f2353279), enabling wheel reuse across containers. The earlier test PR #1249 was closed unmerged.
qwen3.6-35b-a3b-mtp-q6 — — Merged via PR #1249, integrating the global pip cache feature from craft-providers into charmcraft. This enables package and wheel reuse across containers, reducing charm build times.
qwen/qwen3.6-35b-a3b — — Resolved via PR #1249, integrating craft-providers global pip caching into charmcraft. This enables pip packages and wheels to be reused across containers, reducing charm build times.
qwen/qwen3.6-35b-a3b — — Integrated craft-providers global pip cache support into charmcraft via PR 1249. This enables pip package and wheel reuse across containers, reducing charm build times. The feature was implemented and the issue closed.
qwen3.6-35b-a3b-mtp-q6 — — Resolved via PR #1249, integrating global pip caching from craft-providers into charmcraft. This enables reusable pip packages and wheels across containers, reducing charm build times.

Update history

No update history recorded yet.

Related work

Related issues

Issue Project State Summary Similarity
#1374 pip wheel cache ignored charmcraft closed Pip 23 restored use of Charmcraft's shared wheel cache. The fix merged in canonical/charmcraft#1437 (fe263387), was backported by #1723, and shipped in Charmcraft 2.5.4.
77%
#1249 [DO NOT MERGE] test shared cache charmcraft closed Shared-cache test PR #1249 was closed unmerged; production pip-cache support landed in canonical/charmcraft#1270 at f2353279, resolving #1256.
74%
#1270 feat(pack): add shared cache support charmcraft merged Merged PR #1270 (commit f2353279) added default shared pip caching for pack, using ~/.cache/charmcraft and honoring CRAFT_SHARED_CACHE, fixing #1256.
73%
#397 Add global caching for pip and apt craft-providers closed PR #394 merged as commit 8223446, adding global pip caching. Apt caching was omitted after the maintainer authorized pip-only delivery if apt issues remained.
73%
#398 Spec global caching for pip and apt craft-providers closed Global package caching was specified and implemented through craft-providers#394, including pip directory caching and apt-cache handling.
71%