fix: unset PYTHONPATH to prevent Python 3.12 ABI contamination #3
@@ -178,6 +178,12 @@ python3Packages.buildPythonApplication rec {
|
|||||||
--replace-quiet '">=2.4.5"' '""'
|
--replace-quiet '">=2.4.5"' '""'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# PYTHONPATH from the host environment (e.g., mautrix bridge injecting
|
||||||
|
# Python 3.12 site-packages) causes C extension ABI mismatches on NixOS.
|
||||||
|
# The wrapper's own sys.path has the correct closure packages, so we
|
||||||
|
# unset the external PYTHONPATH to prevent contamination.
|
||||||
|
makeWrapperArgs = [ "--unset" "PYTHONPATH" ];
|
||||||
|
|
||||||
dontCheckRuntimeDeps = true;
|
dontCheckRuntimeDeps = true;
|
||||||
catchConflicts = false;
|
catchConflicts = false;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user