homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Install Include/internal/ header files
Type: Stage: resolved
Components: Interpreter Core Versions: Python 3.8, Python 3.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: eric.snow, nascheme, ncoghlan, ponnuchamy4929, vstinner
Priority: normal Keywords: patch

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:08adminsetgithub: 79477
2021年05月28日 18:33:59mark.dickinsonsettitle: Python -> Install Include/internal/ header files
versions: + Python 3.8
2021年05月28日 18:03:45mark.dickinsonsetmessages: - msg394672
2021年05月28日 18:03:33mark.dickinsonsetmessages: - msg394671
2021年05月28日 16:56:26ponnuchamy4929setmessages: + msg394672
2021年05月28日 16:55:55ponnuchamy4929setversions: - Python 3.8
nosy: + ponnuchamy4929
title: Install Include/internal/ header files -> Python
messages: + msg394671

2018年12月04日 20:30:54vstinnersetstatus: open -> closed
resolution: fixed
2018年12月04日 20:28:31vstinnersetmessages: + msg331076
2018年12月04日 16:15:13vstinnersetstatus: closed -> open
resolution: fixed -> (no value)
messages: + msg331060

versions: + Python 3.7
2018年12月04日 16:12:51vstinnersetpull_requests: + pull_request10137
2018年11月23日 15:41:27vstinnersetstatus: open -> closed
resolution: fixed
messages: + msg330333

stage: patch review -> resolved
2018年11月23日 15:30:16vstinnersetmessages: + msg330332
2018年11月22日 17:56:08vstinnersetmessages: + msg330275
2018年11月22日 17:48:25vstinnersetmessages: + msg330274
2018年11月22日 17:43:05vstinnersetkeywords: + patch
stage: patch review
pull_requests: + pull_request9918
2018年11月22日 17:33:21vstinnercreate

AltStyle によって変換されたページ (->オリジナル) /