Skip to content

Commit

Permalink
Merge pull request #1797 from Atry/dask
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud authored Sep 30, 2024
2 parents 71a7996 + 3963e6a commit ef877b8
Show file tree
Hide file tree
Showing 5 changed files with 558 additions and 0 deletions.
13 changes: 13 additions & 0 deletions overrides/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,19 @@ lib.composeManyExtensions [
preferWheel = true;
};

dask = prev.dask.overridePythonAttrs (
old: {
propagatedBuildInputs = removePackagesByName
old.propagatedBuildInputs or [ ]
(
# dask[dataframe] depends on dask-expr, which depends on dask, resulting in infinite recursion
lib.optionals (final ? dask-expr) [ final.dask-expr ] ++
# dask[dataframe] depends on distributed, which depends on dask, resulting in infinite recursion
lib.optionals (final ? distributed) [ final.distributed ]
);
}
);

datadog-lambda = prev.datadog-lambda.overridePythonAttrs (old: {
postPatch = ''
substituteInPlace setup.py --replace-warn "setuptools==" "setuptools>="
Expand Down
13 changes: 13 additions & 0 deletions tests/dask-dataframe/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{ poetry2nix, python311, runCommand }:
let
env = poetry2nix.mkPoetryEnv {
python = python311;
pyproject = ./pyproject.toml;
poetrylock = ./poetry.lock;
preferWheels = true;
};
in
runCommand "dask-dataframe-infinite-recursion-test" { } ''
${env}/bin/python -c 'import dask.dataframe as dd; import dask_expr'
touch $out
''
Loading

0 comments on commit ef877b8

Please sign in to comment.