8000 Cache build dependencies on Circle · QuLogic/matplotlib@da5af35 · GitHub
[go: up one dir, main page]

Skip to content

Commit da5af35

Browse files
committed
Cache build dependencies on Circle
This seems to be failing a bit more often today, so hopefully this will help a little.
1 parent c19c9fa commit da5af35

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

.circleci/config.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,13 @@ commands:
105105
- run:
106106
name: Install Matplotlib
107107
command: python -m pip install --user -ve .
108+
- save_cache:
109+
key: build-deps-1
110+
paths:
111+
# FreeType 2.6.1 tarball.
112+
- ~/.cache/matplotlib/0a3c7dfbda6da1e8fce29232e8e96d987ababbbf71ebc8c75659e4132c367014
113+
# Qhull 2020.2 tarball.
114+
- ~/.cache/matplotlib/b5c2d7eb833278881b952c8a52d20179eab87766b00b865000469a45c1838b7e
108115

109116
doc-build:
110117
steps:

setupext.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -168,14 +168,16 @@ def get_and_extract_tarball(urls, sha, dirname):
168168
'2.10.1':
169169
'3a60d391fd579440561bf0e7f31af2222bc610ad6ce4d9d7bd2165bca8669110',
170170
}
171-
# This is the version of FreeType to use when building a local
172-
# version. It must match the value in
173-
# lib/matplotlib.__init__.py and also needs to be changed below in the
174-
# embedded windows build script (grep for "REMINDER" in this file)
171+
# This is the version of FreeType to use when building a local version. It
172+
# must match the value in lib/matplotlib.__init__.py and also needs to be
173+
# changed below in the embedded windows build script (grep for "REMINDER" in
174+
# this file). Also update the cache path in `.circleci/config.yml`.
175175
LOCAL_FREETYPE_VERSION = '2.6.1'
176176
LOCAL_FREETYPE_HASH = _freetype_hashes.get(LOCAL_FREETYPE_VERSION, 'unknown')
177177

178+
# Also update the cache path in `.circleci/config.yml`.
178179
LOCAL_QHULL_VERSION = '2020.2'
180+
LOCAL_QHULL_HASH = 'b5c2d7eb833278881b952c8a52d20179eab87766b00b865000469a45c1838b7e'
179181

180182

181183
# Matplotlib build options, which can be altered using mplsetup.cfg
@@ -688,7 +690,7 @@ def do_custom_build(self, env):
688690

689691
toplevel = get_and_extract_tarball(
690692
urls=["http://www.qhull.org/download/qhull-2020-src-8.0.2.tgz"],
691-
sha="b5c2d7eb833278881b952c8a52d20179eab87766b00b865000469a45c1838b7e",
693+
sha=LOCAL_QHULL_HASH,
692694
dirname=f"qhull-{LOCAL_QHULL_VERSION}",
693695
)
694696
shutil.copyfile(toplevel / "COPYING.txt", "LICENSE/LICENSE_QHULL")

0 commit comments

Comments
 (0)
0