You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Implement PEP 829 - Package Startup Configuration #148641
Disclaimer: ignore this message if your PEP was accepted by the SC
Barry, maybe you are not aware of it but we try to avoid opening issues or PRs in the main repo for PEPs reference implementations if they are not already accepted. It is preferrable to have everything in a separate repo/fork so that we only discuss the reference implementation separately, unless you need the build bot fleet to test your changes (in which case, please indicate that in the PR and issue description).
Once the PEP is assigned a number and committed to the PEP repository, substantive issues should generally be discussed on the canonical public thread, as opposed to private channels, GitHub pull request reviews or unrelated venues.
Once a PEP has been accepted [by the SC], the reference implementation must be completed. When the reference implementation is complete and incorporated into the main source code repository, the status will be changed to “Final”.
So, usually (and to really enforce splitting design discussions from integration into main), we do not open issues or PRs for PEPs that are yet to be accepted.
Thanks @picnixz. I can respect that. I was wondering if the test-with-buildbots label (which isn't set on this PR) would disable buildbot fleet testing? The branch is in my fork.
Test-with-buildbots launch de buildbot fleet if your PR is opened against main and in this repo. If you create your own fork and create a PR against your own forked main, that label would not work (AFAIK)
@warsaw What do you think of the idea of enhancing python -m site to print out the list of startup files that were found and executed? Extracting a definitive version of that list at the moment is fairly painful (the most robust option I currently have is grepping the output of python -vv for references to \.pth).
The key change from the current PR would be that instead of dumping the sets of pending files entirely after processing them, we'd instead move them over to an "executed files" set, and make that available for reporting purposes (both in the module API and in the python -m site output).
@warsaw What do you think of the idea of enhancing python -m site to print out the list of startup files that were found and executed? Extracting a definitive version of that list at the moment is fairly painful (the most robust option I currently have is grepping the output of python -vv for references to \.pth).
The key change from the current PR would be that instead of dumping the sets of pending files entirely after processing them, we'd instead move them over to an "executed files" set, and make that available for reporting purposes (both in the module API and in the python -m site output).
I think this is a great idea. python -m site already prints out some information so this would be a simple addition.
@warsaw What do you think of the idea of enhancing python -m site to print out the list of startup files that were found and executed? Extracting a definitive version of that list at the moment is fairly painful (the most robust option I currently have is grepping the output of python -vv for references to \.pth).
The key change from the current PR would be that instead of dumping the sets of pending files entirely after processing them, we'd instead move them over to an "executed files" set, and make that available for reporting purposes (both in the module API and in the python -m site output).
I'll probably do this as a followup PR after the main PEP 829 one lands.
Activity
picnixz commentedon Apr 16, 2026
Disclaimer: ignore this message if your PEP was accepted by the SC
Barry, maybe you are not aware of it but we try to avoid opening issues or PRs in the main repo for PEPs reference implementations if they are not already accepted. It is preferrable to have everything in a separate repo/fork so that we only discuss the reference implementation separately, unless you need the build bot fleet to test your changes (in which case, please indicate that in the PR and issue description).
The rationale is that it is described in PEP-1:
So, usually (and to really enforce splitting design discussions from integration into
main), we do not open issues or PRs for PEPs that are yet to be accepted.warsaw commentedon Apr 17, 2026
Thanks @picnixz. I can respect that. I was wondering if the
test-with-buildbotslabel (which isn't set on this PR) would disable buildbot fleet testing? The branch is in my fork.picnixz commentedon Apr 17, 2026
Test-with-buildbots launch de buildbot fleet if your PR is opened against main and in this repo. If you create your own fork and create a PR against your own forked main, that label would not work (AFAIK)
ncoghlan commentedon May 2, 2026
@warsaw What do you think of the idea of enhancing
python -m siteto print out the list of startup files that were found and executed? Extracting a definitive version of that list at the moment is fairly painful (the most robust option I currently have is grepping the output ofpython -vvfor references to\.pth).The key change from the current PR would be that instead of dumping the sets of pending files entirely after processing them, we'd instead move them over to an "executed files" set, and make that available for reporting purposes (both in the module API and in the
python -m siteoutput).warsaw commentedon May 2, 2026
I think this is a great idea.
python -m sitealready prints out some information so this would be a simple addition.warsaw commentedon May 3, 2026
I'll probably do this as a followup PR after the main PEP 829 one lands.
gh-148641: Implement PEP 829 - startup configuration files (#149109)
hugovk commentedon May 3, 2026
Let's also add an entry for the PEP in the What's New, rather than just linking to the PEP. Compare PEP 810.
https://docs.python.org/3.15/whatsnew/3.15.html
(729 and 800 will also need one.)
gh-148641: Flesh out PEP 829 for What's New (#149347)
warsaw commentedon May 8, 2026
Closing this issue out as 829 should be fully implemented now.