Commit 280762c
CI: beef up Windows DLL diagnostic with pefile + per-.pyd probes
First-pass diagnostic showed `vcomp140.dll` is reachable via ctypes.CDLL,
so the failure is not at the obvious OpenMP-runtime layer. `dumpbin` was
not on the pwsh PATH on the runner, so that arm produced no output.
This replaces the dumpbin pass with a pefile-driven probe (pefile is a
pure-Python PE parser, installed one-off via pip). For each built .pyd:
- list its DLL-level import table (what Windows' loader will try to
resolve when LoadLibrary runs), so we know the real shopping list;
- attempt `ctypes.WinDLL(pyd)` — which calls LoadLibrary WITHOUT
running PyInit, i.e. only exercises the DLL-level import step. A
WinDLL failure narrows the problem to Windows' loader; a WinDLL
success + Python-import failure narrows it to Cython's cross-module
cimport chain that runs inside PyInit;
- attempt Python import of every wlsqm module in dependency order and
report which one is the first to raise.
Together these three probes should pinpoint the exact module and layer
(Windows loader vs. Cython init) on the next CI run.
Context: commit d82044b (David Caron, Jun 2018) got wlsqm to compile
under MSVC — /openmp, drop -lm, popcount.h shim, zero/zero NaN — but
probably nobody ever ran the tests on Windows past that point, so this
may be the first end-to-end Windows import since the codebase was
written.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 51cdfb6 commit 280762c
1 file changed
+66
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
77 | 80 | | |
78 | 81 | | |
79 | 82 | | |
80 | 83 | | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
| 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 | + | |
86 | 142 | | |
87 | 143 | | |
88 | 144 | | |
| |||
0 commit comments