Commit a7f9ba2
CI: Windows diagnostic glob fix + isolate PyInit via importlib spec
Previous diagnostic run executed fine under bash this time, and its
output pinpointed a silly mistake: I was globbing `wlsqm/**/*.pyd` but
meson-python's editable install puts the compiled .pyd files under
`build/<tag>/wlsqm/...`, not under the source tree. The editable
loader redirects imports there. Result: my pefile and WinDLL probes
both ran on an empty list and produced no output, and the Python-level
probe fell back to re-triggering wlsqm/__init__.py which always fails
at the same point.
This commit:
1. Globs `build/**/*.pyd` so the probes actually see the compiled
extensions.
2. Replaces the Python-level import probe with an importlib
`spec_from_file_location` probe that loads each .pyd directly by
filesystem path, in dependency order. That way PyInit runs for
each module individually without going through wlsqm/__init__.py
(whose first line that uses OpenMP is what fails). The first
module whose PyInit raises is the one we actually care about.
3. Derives the target .pyd for each fully-qualified name by matching
subdir + filename stem instead of hardcoding the ABI tag, so the
same script works for every Python version in the test matrix.
With these three probes (pefile imports table, WinDLL LoadLibrary-only,
spec-load PyInit-only), the next CI run should clearly answer whether
the failure is (a) Windows loader cannot resolve a direct DLL import
of one of our .pyd files, or (b) one of the .pyd PyInit functions
raises during its Cython cross-module cimport chain.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 8743e40 commit a7f9ba2
1 file changed
Lines changed: 50 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
95 | 99 | | |
96 | 100 | | |
97 | 101 | | |
| |||
111 | 115 | | |
112 | 116 | | |
113 | 117 | | |
114 | | - | |
| 118 | + | |
115 | 119 | | |
116 | 120 | | |
117 | 121 | | |
| |||
120 | 124 | | |
121 | 125 | | |
122 | 126 | | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
134 | 147 | | |
135 | | - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
136 | 164 | | |
137 | | - | |
138 | | - | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
139 | 170 | | |
140 | | - | |
| 171 | + | |
| 172 | + | |
141 | 173 | | |
142 | 174 | | |
143 | 175 | | |
| |||
0 commit comments