Issue 35296: Install Include/internal/ header files (original) (raw)

Issue35296

Created on 2018-11-22 17:33 by vstinner, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 10665 merged vstinner,2018-11-22 17:43
PR 10897 merged vstinner,2018-12-04 16:12
Messages (7)
msg330271 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2018-11-22 17:33
For some very specific use cases (ex: debuggers), it can be interesting to access the internal API of CPython. I propose to install the internal API: Include/internal/*.h header files. Attached PR implements this idea.
msg330274 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2018-11-22 17:48
Example of debuggers: vmprof or faulthandler (now part of the stdlib).
msg330275 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2018-11-22 17:56
TODO: Update the Windows installer: https://github.com/python/cpython/pull/10624#issuecomment-441090519
msg330332 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2018-11-23 15:30
New changeset f653fd4d950ac092719b6152e38d77c62b443125 by Victor Stinner in branch 'master': bpo-35296: make install now installs the internal API (GH-10665) https://github.com/python/cpython/commit/f653fd4d950ac092719b6152e38d77c62b443125
msg330333 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2018-11-23 15:41
I decided to merge my PR because I started to *remove* functions from the public C API to move them to the CPython internal API: _PyObject_GC_TRACK() and _PyObject_GC_UNTRACK() are two examples from bpo-35081. So some people might want even more to use the internal API. The main issue with this API is the requirement to use the same compiler with the same compilation options, especially to access atomic variables.
msg331060 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2018-12-04 16:15
I reopen the issue since I'm now also interested to make the change in Python 3.7. I wrote PR 10897. See discussion on python-dev: https://mail.python.org/pipermail/python-dev/2018-December/155921.html
msg331076 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2018-12-04 20:28
New changeset b02774f42108aaf18eb19865472c8d5cd95b5f11 by Victor Stinner in branch '3.7': bpo-35296: make install now installs the internal API (GH-10665) (GH-10897) https://github.com/python/cpython/commit/b02774f42108aaf18eb19865472c8d5cd95b5f11
History
Date User Action Args
2022-04-11 14:59:08 admin set github: 79477
2021-05-28 18:33:59 mark.dickinson set title: Python -> Install Include/internal/ header filesversions: + Python 3.8
2021-05-28 18:03:45 mark.dickinson set messages: -
2021-05-28 18:03:33 mark.dickinson set messages: -
2021-05-28 16:56:26 ponnuchamy4929 set messages: +
2021-05-28 16:55:55 ponnuchamy4929 set versions: - Python 3.8nosy: + ponnuchamy4929title: Install Include/internal/ header files -> Pythonmessages: +
2018-12-04 20:30:54 vstinner set status: open -> closedresolution: fixed
2018-12-04 20:28:31 vstinner set messages: +
2018-12-04 16:15:13 vstinner set status: closed -> openresolution: fixed -> (no value)messages: + versions: + Python 3.7
2018-12-04 16:12:51 vstinner set pull_requests: + <pull%5Frequest10137>
2018-11-23 15:41:27 vstinner set status: open -> closedresolution: fixedmessages: + stage: patch review -> resolved
2018-11-23 15:30:16 vstinner set messages: +
2018-11-22 17:56:08 vstinner set messages: +
2018-11-22 17:48:25 vstinner set messages: +
2018-11-22 17:43:05 vstinner set keywords: + patchstage: patch reviewpull_requests: + <pull%5Frequest9918>
2018-11-22 17:33:21 vstinner create