Skip to content

Document system-packages for inline scripts - #2307

Open
kyo5uke wants to merge 1 commit into
pypa:masterfrom
kyo5uke:docs-inline-script-system-packages
Open

Document system-packages for inline scripts#2307
kyo5uke wants to merge 1 commit into
pypa:masterfrom
kyo5uke:docs-inline-script-system-packages

Conversation

@kyo5uke

@kyo5uke kyo5uke commented Jun 4, 2026

Copy link
Copy Markdown

PEP 723 inline scripts can give their environment access to the system site-packages by setting system-packages = true in the script's [tool.hatch] table (the equivalent of a virtual environment created with --system-site-packages).

This option is already supported by the virtual environment type, so this is a documentation-only change that adds it to the "Environment configuration" section of the How to run Python scripts guide, alongside the existing installer example.

Closes #1963

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PEP723: Using --system-site-packages

1 participant