diff options
author | Martin Weinelt <mweinelt@users.noreply.github.com> | 2024-05-10 09:58:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-10 09:58:07 +0200 |
commit | d029669a9a5407c9b28ebb941cbe757ebecc908e (patch) | |
tree | 391a7f01591a702c63ef1d831caacb4f8225f760 /pkgs/development/interpreters | |
parent | f4b3bea79504451686a6a6abec02eecaefd6fe6e (diff) | |
parent | 002054c95f359f6f55731a813e05c0663cf28d90 (diff) |
Merge pull request #309477 from Atry/patch-4
python: add an error message for debugging infinite recursion
Diffstat (limited to 'pkgs/development/interpreters')
-rw-r--r-- | pkgs/development/interpreters/python/python-packages-base.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/development/interpreters/python/python-packages-base.nix b/pkgs/development/interpreters/python/python-packages-base.nix index e2bd6cd5a5ab6..2306292eb8c8f 100644 --- a/pkgs/development/interpreters/python/python-packages-base.nix +++ b/pkgs/development/interpreters/python/python-packages-base.nix @@ -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); }; }); |