Description
Description:
A few days ago my builds with Python 3.9 and 3.10 broke due to a missing Python.h
include in one of the dependent packages that I build during the process. The same setup builds fine for 3.11, 3.12 and 3.13, and it used to work before that for 3.9 and 3.10 as well.
As far as I know, no changes were made to the dependent package.
Example failing job: https://github.com/mkcms/bdx/actions/runs/12715895623/job/35449032864
A successful build from a week ago: https://github.com/mkcms/bdx/actions/runs/12610330973/job/35144803933
Action version:
Latest master
Platform:
- Ubuntu
- macOS
- Windows
Runner type:
- Hosted
- Self-hosted
Tools version:
- 3.9
- 3.10
Repro steps:
Try to compile a C Python extension that uses Python.h
header.
Expected behavior:
No error.
Actual behavior:
The Python.h
header can't be found.
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../python3 -I.. -I/opt/hostedtoolcache/Python/3.10.15/x64/include/python3.10 -fno-strict-aliasing -Wall -Wno-unused -Wno-uninitialized -fvisibility=hidden -fvisibility-inlines-hidden -g -O2 -MT xapian_wrap.lo -MD -MP -MF .deps/xapian_wrap.Tpo -c ../../python3/xapian_wrap.cc -fPIC -DPIC -o .libs/xapian_wrap.o
../../python3/xapian_wrap.cc:20:10: fatal error: Python.h: No such file or directory
20 | #include <Python.h>