Commit 61a59da
committed
Read PE exports directly instead of shelling to dumpbin
dumpbin only exists inside a Visual Studio developer environment, which
the CI runner never enters, so the symbol check died with WinError 2
after the example had built and passed its tests.
Parse the PE export name table instead. It needs no toolchain, so the
check keeps working wherever Python runs, and Windows is the platform
this check exists to cover: it is the one that can silently fail to
export a symbol.
Validated against the win_amd64 wheel built from this branch, read on
macOS: 252 exports, of which 219 are ccsp_, matching the 219 declared
symbols exactly. Non-PE input is rejected rather than misparsed.
Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com>1 parent 71cdbef commit 61a59da
1 file changed
Lines changed: 48 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
39 | 40 | | |
40 | 41 | | |
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 | + | |
42 | 89 | | |
43 | 90 | | |
44 | | - | |
45 | | - | |
| 91 | + | |
46 | 92 | | |
47 | 93 | | |
48 | 94 | | |
| |||
0 commit comments