Commit 4e47570
authored
feat(pi-fortran): use f2py-cmake instead of hand-rolled f2py wiring (#73)
Replace the manual numpy.f2py include probe, add_custom_command wrapper
generation, and explicit fortranobject.c plumbing with f2py-cmake's
UseF2Py module and a single f2py_add_module call. Default --lower and
F77 detection preserve the previous behavior; the checked-in .pyf
signature (the underscore-problem fix) is passed straight through.
Assisted-by: ClaudeCode:claude-opus-4.81 parent cf5d3dd commit 4e47570
3 files changed
Lines changed: 17 additions & 39 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
10 | 13 | | |
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 | | - | |
| 14 | + | |
43 | 15 | | |
44 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
45 | 20 | | |
46 | 21 | | |
47 | 22 | | |
48 | 23 | | |
49 | | - | |
| 24 | + | |
50 | 25 | | |
51 | 26 | | |
52 | | - | |
| 27 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | | - | |
| 25 | + | |
24 | 26 | | |
25 | | - | |
| 27 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
0 commit comments