Commit 2619fa9
Spack CI: install mypy with pip rather than through spack
mypy checks the sources; it is not a dependency of the build. Adding
py-mypy to the environment puts it on the concretized DAG and in the
build cache, and pins whatever version the packages ref carries. Install
it with pip in the step instead.
'--user', because the environment's view is spack-managed, and invoke it
as a module so the script directory does not need to be on PATH.
The step then echoes 'mypy --version'. This step is expected to report
errors, so without that line a failed install and a working mypy finding
problems would look the same in the log.
Not verified locally: reproducing it needs a spack environment in the
container, and the ones from the cache warm are gone. If pip refuses to
install into that python, the version line will be missing and the cause
will be obvious from the log.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent bcec176 commit 2619fa9
1 file changed
Lines changed: 14 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
| 158 | + | |
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
235 | 245 | | |
236 | 246 | | |
237 | | - | |
238 | | - | |
239 | | - | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
240 | 250 | | |
241 | 251 | | |
242 | 252 | | |
| |||
0 commit comments