Skip to content

gh-137210: Move PYTHON_API_VERSION & PYTHON_ABI_VERSION to patchlevel.h - #138545

Merged
encukou merged 1 commit into
python:mainfrom
encukou:modsupport-pack-version
Sep 8, 2025
Merged

encukou merged 1 commit into
python:mainfrom
encukou:modsupport-pack-version

Conversation

@encukou

@encukou encukou commented Sep 5, 2025 •

Copy link
Copy Markdown
Member

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
Copy Markdown
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
@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

2 participants