Fix system site packages detection default (#11956)

See https://docs.python.org/3/library/site.html and
https://github.com/python/cpython/blob/a549f439384b4509b25639337ffea21c2e55d452/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
+1 -1
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