!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

312 Members
https://github.com/nix-community/poetry2nix58 Servers

Load older messages


SenderMessageTime
8 Nov 2023
@adis:blad.isadisbladisIt's funny that they don't even publish sdists but still have cmake listed :P22:24:16
@matthewcroughan:defenestrate.itmatthewcroughanah, apparently I do need cmake for another reason 22:25:43
@matthewcroughan:defenestrate.itmatthewcroughanoh nvm, I just am too dumb to know what you mean by filtering it 22:26:12
@adis:blad.isadisbladis propagatedBuildInputs = builtins.filter (e: e.pname != "cmake") old.propagatedBuildInputs; 22:26:45
@matthewcroughan:defenestrate.itmatthewcroughanyeah that's what I did22:27:10
@matthewcroughan:defenestrate.itmatthewcroughanguess it's not in propagated, native maybe 22:27:14
@matthewcroughan:defenestrate.itmatthewcroughanhttps://github.com/NixOS/nixpkgs/blob/nixos-23.05/pkgs/development/python-modules/openai-triton/default.nix#L15022:28:49
@matthewcroughan:defenestrate.itmatthewcroughanopenai-triton won't be being used by the overlay though, since of the naming mismatch 22:29:07
@matthewcroughan:defenestrate.itmatthewcroughaneven though I think this is the correct one 22:29:14
@adis:blad.isadisbladisThey do source builds https://github.com/NixOS/nixpkgs/blob/nixos-23.05/pkgs/development/python-modules/openai-triton/default.nix#L57-L6222:29:33
@adis:blad.isadisbladisSo it's correct for them to have cmake22:29:38
@matthewcroughan:defenestrate.itmatthewcroughanright, so I do need cmake, and I need to fix cmake 22:29:55
@adis:blad.isadisbladisNo, you don't22:30:12
@adis:blad.isadisbladisCmake is something you need when building from source22:30:19
@matthewcroughan:defenestrate.itmatthewcroughanand in this case I have a dist but it is still trying to use cmake, and I'm trying to get rid of cmake 22:30:36
@adis:blad.isadisbladisUpstream has some buggy dependency definitions, like all other crappy "data science" packages22:30:44
@matthewcroughan:defenestrate.itmatthewcroughan it's not in the propagatedBuildInputs, and I can't remove it from native because something in the list doesn't have pname 22:30:51
@adis:blad.isadisbladisThe thing in the list that doesn't have pname is probably cmake which you just set to null22:31:18
@adis:blad.isadisbladis matthewcroughan - nix.how: I think you'd benefit from calming down a bit and try and understand why the dependencies exist 22:31:52
@matthewcroughan:defenestrate.itmatthewcroughanI'm not angry? Lol22:31:58
@adis:blad.isadisbladisNo, but very hurried22:32:04
@matthewcroughan:defenestrate.itmatthewcroughanDo you blame me? Is Python calming for you?22:32:31
@matthewcroughan:defenestrate.itmatthewcroughanI had this thing working, then I found out about poetry groups, now I have 10 more overrides to make :D22:33:00
@adis:blad.isadisbladisI think the dependency relations here are fairly obvious, and so is the fix22:33:00
@matthewcroughan:defenestrate.itmatthewcroughan you can't set cmake to null because then it makes the filter function fail in the poetry overrides, this is a tricky one for me 22:36:25
@matthewcroughan:defenestrate.itmatthewcroughan
                cmake = null;
                triton = super.triton.overridePythonAttrs
                  (
                    old: {
                      propagatedBuildInputs = builtins.filter (e: e != null) old.propagatedBuildInputs;
                      dontUseCmakeConfigure = true;
                    }
                  );

22:36:44
@adis:blad.isadisbladisThat will fail with the same error message because of the bundled poetry2nix overrides22:37:26
@matthewcroughan:defenestrate.itmatthewcroughanthat's what I am suggesting22:37:35
@adis:blad.isadisbladis

Remove cmake = null & do:

propagatedBuildInputs = builtins.filter (e: e.pname != "cmake") old.propagatedBuildInputs;
22:38:20
@matthewcroughan:defenestrate.itmatthewcroughanOh, that's what I originally did22:38:45

Show newer messages


Back to Room ListRoom Version: 6