Commit cdadef2
committed
fix: use system Python with --target for Windows embeddable builds
The embeddable Python distribution lacks development headers (Python.h)
required to compile native extensions. When using the embeddable Python's
pip directly, packages with native code fail to build with:
fatal error C1083: Cannot open include file: 'Python.h'
This fix uses the system Python (which has headers) to compile packages,
while directing the output to the embeddable Python's site-packages
directory using pip's --target flag.
Changes:
- build-windows-executable-app.yaml: Use system Python with --target,
remove unnecessary pip installation in embeddable Python
- test-win-exe-w-embed-py.yaml: Add setup-python action, use system
Python with --target, remove pip installation step
- docs/win_exe_with_embed_py.md: Add prerequisites section explaining
the need for system Python, update install command to use --target
https://claude.ai/code/session_0152zcfBS5dWLtM12ubuYrKC1 parent 8cb8b57 commit cdadef2
File tree
3 files changed
+30
-35
lines changed- .github/workflows
- docs
3 files changed
+30
-35
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | 238 | | |
245 | 239 | | |
246 | 240 | | |
247 | 241 | | |
248 | 242 | | |
249 | | - | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
250 | 247 | | |
251 | 248 | | |
252 | 249 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
20 | 25 | | |
21 | 26 | | |
22 | 27 | | |
23 | 28 | | |
24 | 29 | | |
25 | 30 | | |
26 | 31 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
36 | | - | |
| 35 | + | |
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
41 | 40 | | |
42 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
6 | 12 | | |
7 | 13 | | |
8 | 14 | | |
| |||
22 | 28 | | |
23 | 29 | | |
24 | 30 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | 31 | | |
44 | 32 | | |
45 | 33 | | |
| |||
55 | 43 | | |
56 | 44 | | |
57 | 45 | | |
58 | | - | |
| 46 | + | |
59 | 47 | | |
60 | 48 | | |
61 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
62 | 53 | | |
63 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
64 | 60 | | |
65 | 61 | | |
66 | 62 | | |
| |||
0 commit comments