Skip to content

🐛 fix(create): filter distutils install_lib - #3609

Merged
gaborbernat merged 2 commits into
pypa:mainfrom
gaborbernat:fix/distutils-install-lib
Nov 20, 2026
Merged

gaborbernat merged 2 commits into
pypa:mainfrom
gaborbernat:fix/distutils-install-lib

Conversation

@gaborbernat

@gaborbernat gaborbernat commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

The Python 3.9 distutils hook filtered several configured install destinations but left install_lib in place. Package installs could therefore use a configured library path outside the environment. The hook now filters that option too. Fixes #3606.

Install location filtering

The option filter removes install_lib alongside the other install path overrides after distutils reads its configuration. prefix keeps its existing virtualenv-specific handling.

Behavior changes

Python 3.9 package installs ignore install_lib from distutils configuration inside the virtual environment. Other options keep their existing behavior.

Report ANT-2026-7PG08GIP.

@gaborbernat
gaborbernat force-pushed the fix/distutils-install-lib branch from 6905dcf to 61cabda Compare November 20, 2026 01:11
@gaborbernat
gaborbernat merged commit 930afbe into pypa:main Nov 20, 2026
81 checks passed
@gaborbernat
gaborbernat deleted the fix/distutils-install-lib branch November 23, 2026 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Python 3.9 distutils hook leaves install_lib override active

1 participant