Merge pull request #309477 from Atry/patch-4

python: add an error message for debugging infinite recursion
This commit is contained in:
Martin Weinelt 2024-05-10 09:58:07 +02:00 committed by GitHub
commit d029669a9a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -68,7 +68,10 @@ let
passthru = (oldAttrs.passthru or {})// {
pythonModule = python;
pythonPath = [ ]; # Deprecated, for compatibility.
requiredPythonModules = requiredPythonModules drv.propagatedBuildInputs;
requiredPythonModules =
builtins.addErrorContext
"while calculating requiredPythonModules for ${drv.name or drv.pname}:"
(requiredPythonModules drv.propagatedBuildInputs);
};
});