Skip to content

Modernize virtual environments page - #2201

Merged
brettcannon merged 6 commits into
pypa:mainfrom
konstin:konsti/pyvenv-cfg-modernize
Nov 25, 2026
Merged

brettcannon merged 6 commits into
pypa:mainfrom
konstin:konsti/pyvenv-cfg-modernize

Conversation

@konstin

@konstin konstin commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Cleanup ahead of PEP 838.

  • Remove the references to PEP 405 in the text, PPO is the living spec page.
  • Remove the framing from PEP 405 that doesn't match current usage
  • Document the fields in pyvenv.cfg
  • Clarify that include-system-site-packages defaults to true

I left the parts that were previously vague as such, only removing those that are vague and misleading.


📚 Documentation preview 📚: https://python-packaging-user-guide--2201.org.readthedocs.build/en/2201/

@rgommers rgommers added component: specifications type: maintenance Regular maintenance of the guide, CI and repo labels Nov 22, 2026

@rgommers rgommers left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @konstin. This looks good overall, I think I spotted one error and one opportunity to be more precise.

@rgommers rgommers left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM now, thanks @konstin. I think this improves the specification in both clarity and in fixing the historical error that was still present in PEP 405. Happy for this to go in; I'll leave it open for at least a few days because it touches Specifications, so useful for a second pair of eyes to check it.

@brettcannon brettcannon left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm not sure if it should be mentioned that there are no sections to the file like some INI files and that each line that contains a = is read via str.partition("="). As well, the keys are case-insensitive and excess whitespace is stripped.

@brettcannon
brettcannon added this pull request to the merge queue Nov 25, 2026
Merged via the queue into pypa:main with commit eadd66f Nov 25, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: specifications type: maintenance Regular maintenance of the guide, CI and repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants