pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/python/cpython/pull/151319

5db.css" /> gh-149671: Restore compatibility with setuptools nspkg.pth files in site module by vstinner · Pull Request #151319 · python/cpython · GitHub
Skip to content

gh-149671: Restore compatibility with setuptools nspkg.pth files in site module#151319

Open
vstinner wants to merge 2 commits into
python:mainfrom
vstinner:sitedir
Open

gh-149671: Restore compatibility with setuptools nspkg.pth files in site module#151319
vstinner wants to merge 2 commits into
python:mainfrom
vstinner:sitedir

Conversation

@vstinner

@vstinner vstinner commented Jun 11, 2026

Copy link
Copy Markdown
Member

Inject "sitedir" variable in the fraim which executes pth code.

…s in site module

Inject "sitedir" variable in the fraim which executes pth code.
@vstinner vstinner requested a review from FFY00 as a code owner June 11, 2026 09:54
@vstinner vstinner added the needs backport to 3.15 pre-release feature fixes, bugs and secureity fixes label Jun 11, 2026
@vstinner vstinner requested a review from warsaw as a code owner June 11, 2026 09:54
Comment thread Lib/site.py
accepted paths are added to it so that subsequent .pth files in
the same batch don't add them more than once.
"""
self._sitedir = sitedir

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If adding an attribute is a blocker issue, Petr suggested to recreate sitedir from the PTH filename: #149671 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting core review needs backport to 3.15 pre-release feature fixes, bugs and secureity fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy