apache / apache/beam

Use persistent caching with pip

Open
#19,901 0 comments 0 reactions 0 assignees View on GitHub
P3 sub-task tests
Dominant language
Java
Stars
8.7k
Forks
4.7k
Avg merge
1d 20h
Merged PRs (30d)
196

Description

Use a persistent cache directory for pip install calls (at https://github.com/apache/beam/blob/master/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy#L1771 and some more in that file.)

Pip does support caching (https://pip.pypa.io/en/stable/reference/pip_install/#caching) but the default directory may not be persistent across jobs.

[~ibzib] you mentioned that this might help with container build times. Containers are build by runnin pip inside the container, I am not sure if that will be possible to use the same shared cache for that process or not.

Imported from Jira [BEAM-8380](https://issues.apache.org/jira/browse/BEAM-8380). Original Jira may contain additional context.
Reported by: altay.
Subtask of issue #19900

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.