Skip to content

Conversation

encukou
Copy link
Member

@encukou encukou commented Sep 5, 2025

This allows removing #include "modsupport.h" from python_ver_rc.h, which allows modsupport.h to use common helpers from Python.h -- specifically, _Py_PACK_VERSION for defining limited API.

This allows removing #include "modsupport.h" from python_ver_rc.h,
which allows modsupport.h to use common helpers from Python.h --
specifically, `_Py_PACK_VERSION` for defining limited API.
@AA-Turner
Copy link
Member

macOS 13 failing with the below, seems unrelated.

./Programs/_freeze_module zipimport ./Lib/zipimport.py Python/frozen_modules/zipimport.h
gmake: *** [Makefile:1943: Python/frozen_modules/zipimport.h] Illegal instruction: 4

@encukou encukou merged commit 097c563 into python:main Sep 8, 2025
85 of 87 checks passed
@encukou encukou deleted the modsupport-pack-version branch September 8, 2025 10:02
lkollar pushed a commit to lkollar/cpython that referenced this pull request Sep 9, 2025
…hlevel.h (pythonGH-138545)

Move PYTHON_API_VERSION & PYTHON_ABI_VERSION to patchlevel.h

This allows removing #include "modsupport.h" from python_ver_rc.h,
which allows modsupport.h to use common helpers from Python.h --
specifically, `_Py_PACK_VERSION` for defining limited API.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants