Skip to content

Commit

Permalink
pythonPackages: move __attrsFailEvaluation to allow deeper inspection
Browse files Browse the repository at this point in the history
  • Loading branch information
philiptaron committed Jul 4, 2024
1 parent b1afdbf commit 0213840
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
6 changes: 4 additions & 2 deletions pkgs/development/interpreters/python/python-packages-base.nix
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ in {
inherit toPythonModule toPythonApplication;

python = toPythonModule python;
# Dont take pythonPackages from "global" pkgs scope to avoid mixing python versions
pythonPackages = self;

# Don't take pythonPackages from "global" pkgs scope to avoid mixing python versions.
# Prevent `pkgs/top-level/release-attrpaths-superset.nix` from recursing more than one level here.
pythonPackages = self // { __attrsFailEvaluation = true; };
}
25 changes: 13 additions & 12 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17337,19 +17337,20 @@ with pkgs;

# List of extensions with overrides to apply to all Python package sets.
pythonPackagesExtensions = [ ];

# Python package sets.
python27Packages = python27.pkgs // { __attrsFailEvaluation = true; };
python39Packages = python39.pkgs // { __attrsFailEvaluation = true; };
python310Packages = python310.pkgs // { __attrsFailEvaluation = true; };
python311Packages = recurseIntoAttrs python311.pkgs // { pythonPackages = python311.pkgs // { __attrsFailEvaluation = true; }; };
python312Packages = recurseIntoAttrs python312.pkgs // { pythonPackages = python312.pkgs // { __attrsFailEvaluation = true; }; };
python313Packages = python313.pkgs // { __attrsFailEvaluation = true; };
pypyPackages = pypy.pkgs // { __attrsFailEvaluation = true; };
pypy2Packages = pypy2.pkgs // { __attrsFailEvaluation = true; };
pypy27Packages = pypy27.pkgs // { __attrsFailEvaluation = true; };
pypy3Packages = pypy3.pkgs // { __attrsFailEvaluation = true; };
pypy39Packages = pypy39.pkgs // { __attrsFailEvaluation = true; };
pypy310Packages = pypy310.pkgs // { __attrsFailEvaluation = true; };
python27Packages = python27.pkgs;
python39Packages = python39.pkgs;
python310Packages = python310.pkgs;
python311Packages = python311.pkgs;
python312Packages = python312.pkgs;
python313Packages = python313.pkgs;
pypyPackages = pypy.pkgs;
pypy2Packages = pypy2.pkgs;
pypy27Packages = pypy27.pkgs;
pypy3Packages = pypy3.pkgs;
pypy39Packages = pypy39.pkgs;
pypy310Packages = pypy310.pkgs;

py3c = callPackage ../development/libraries/py3c { };

Expand Down

0 comments on commit 0213840

Please sign in to comment.