Fix system site packages detection default (#11956)

See https://docs.python.org/3/library/site.html and
a549f43938/Lib/site.py (L614-L639):
The default is for system site packages is true, they have to be
disabled by setting the key to something that is not true.
This commit is contained in:
konsti 2025-03-05 00:22:13 +01:00 committed by GitHub
parent b7f98f1ff2
commit a169dbeabe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -192,7 +192,7 @@ impl PyVenvConfiguration {
let mut uv = false;
let mut relocatable = false;
let mut seed = false;
let mut include_system_side_packages = false;
let mut include_system_side_packages = true;
// Per https://snarky.ca/how-virtual-environments-work/, the `pyvenv.cfg` file is not a
// valid INI file, and is instead expected to be parsed by partitioning each line on the