Skip to content

Commit

Permalink
Merge pull request DavHau#541 from Preemo-Inc/deepspeed-mii.remove-as…
Browse files Browse the repository at this point in the history
…yncio

Add deepspeed-mii.remove-asyncio to fixes
  • Loading branch information
DavHau authored Mar 25, 2023
2 parents f60b983 + 19c6585 commit a343c27
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions mach_nix/fixes.nix
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,11 @@ rec {
patchPhase = "";
};

deepspeed-mii.remove-asyncio = {
_cond = ({ pyver, ... }:
# asyncio becomes a built-in library since Python 3.4
comp_ver pyver ">=" "3.4");
propagatedBuildInputs.mod =
builtins.filter (input: input.pname != "asyncio");
};
}
2 changes: 1 addition & 1 deletion mach_nix/nix/lib.nix
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ rec {
let
provider = if hasAttr "provider" oa.passthru then oa.passthru.provider else "nixpkgs";
in
condition { prov = provider; ver = oa.version; pyver = oa.pythonModule.version; };
condition { prov = provider; ver = oa.version; pyver = oa.passthru.pythonModule.version; };

extract = python: src: fail_msg:
let
Expand Down

0 comments on commit a343c27

Please sign in to comment.