Repository navigation
Commit ee7b6e2
authored
pyscf: Add version 2.14.0 (#2415)
* pyscf: add version 2.14.0 riscv64 wheel build
Upstream ships py3-tagged wheels that are platform-specific fat wheels: no
CPython C-API extensions (no Python.h anywhere in pyscf/lib), just CMake-built
shared libraries (own code, libcint, libxc, xcfun) loaded via ctypes, so one
build serves every interpreter, matching upstream's own aarch64/x86_64 Linux
wheel jobs. libcint's x86 SIMD file (gout2e_simd.c) is not wired into its
build; pyscf's own C sources gate every x86-specific flag behind a compiler
check, so nothing here is riscv64-blocking.
Bundles LICENSE files for libcint (Apache-2.0), libxc/xcfun (MPL-2.0) and
OpenBLAS (BSD), none of which upstream's own official wheels carry despite
linking all four. ENABLE_SMD is left off (matching upstream's own macOS
build), which also keeps pyscf's own GPLv3-licensed MNSOL solvent code
(pyscf/lib/solvent) out of the wheel.
* pyscf: cd out of the checkout before the licence check
/work/pyscf still holds pyscf.egg-info from the --no-clean pip wheel
build step. python -c puts cwd on sys.path[0], so
importlib.metadata resolves that stale egg-info (no licenses/
subdirectory) instead of the installed wheel, and the licence
assertion sees an empty set. Move the check after the cd /tmp the
later import pyscf smoke test already relies on for the same
reason.
* pyscf: rename checkout package dir before pytest to avoid on-disk import
pytest's --import-mode=importlib still imports a nested test's ancestor
packages straight from the checkout's __init__.py by walking up the
filesystem, bypassing the installed wheel (gotcha 616). The checkout's
unrepaired .so then fails to find libopenblas.so.0, aborting
pyscf/lib/__init__.py partway through and cascading into 336
unrelated-looking AttributeErrors.
Fix by moving /work/pyscf/pyscf to /work/pyscf/pyscf-src right before the
pytest invocation and repointing the collection target and --ignore= globs
at the new path, the same approach gotcha 148 already uses.
* pyscf: ignore grad/test/test_ucasci.py, which imports a test-only sibling module not part of the installed wheel
grad/test/test_ucasci.py does `from pyscf.grad.test.test_casci import
_check_fd_grad`, relying on pyscf.grad.test being an importable package -
which it is when running against the in-place checkout, but the installed
wheel (which the collected tests otherwise correctly exercise per gotcha
616) does not ship its own test suite as an importable subpackage.
* pyscf: raise build job timeout to 1440 minutes and drop pytest -q
Run 36691144536 attempt 2 was not superseded or cancelled by hand: the
build job hit its own timeout-minutes: 720 exactly 12h after it started
(17:02:49Z -> 05:03:05Z), with pytest still making steady progress at 88%
of the suite. The wheel build takes 3-4h on the riscv64 runner and the
test suite (upstream's linux-build-aarch64 CI selection, single-threaded)
needs roughly 10h on top, so the job cannot fit in 720 minutes. 1440 is
the ceiling the repo's other long single-job builds use.
Also drop -q: it hides test names until the final summary, which the
timeout cut off, so the ~14 failures already visible in that run could not
be identified. Default verbosity prints each test file as it runs, as
upstream's own pytest invocation does.
* pyscf: run pytest from the checkout root, stop re-importing checkout packages, deselect 8 rounding-edge tests
The first complete test run (15 failed, 2690 passed) showed three separate causes:
- cd /tmp before pytest anchored pytest.ini's --ignore-glob patterns at /tmp, so upstream's own exclusions (*_slow*.py, *test_bz*, ...) matched nothing. That collected fci/test/test_dhf_slow.py and mcscf/test/test_bz.py (5 failures) plus about 3h of other excluded files. Run from /work/pyscf like upstream's CI, via the pytest script so the cwd stays off sys.path.
- After the pyscf -> pyscf-src rename, pytest's Package.setup() resolved checkout package names only up to the non-identifier directory, so grad/__init__.py ran a second time as a top-level `grad`. Its rhf.py rebound the installed scf.hf.RHF.Gradients to a duplicate class, which broke both tools/test/test_finite_diff.py isinstance checks. Delete the checkout's package __init__.py files (no test directory has one).
- Deselect 6 PBC XC-stress finite-difference checks, test_davidson_diag_matrix and test_weight_orth. Each one misses by a few ULP-scale rounding differences against a bound that sits at the test's own numerical noise floor.1 parent 4c256cc commit ee7b6e2
2 files changed
Lines changed: 260 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments