!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

332 Members
https://github.com/nix-community/poetry2nix63 Servers

Load older messages


SenderMessageTime
19 Apr 2022
@adis:blad.isadisbladisIt's not just about that, even though that issue is also worse than you'd think since the evaluator would have to pause and realise sources for every single dependency which is a single threaded operation. But also it's about how IFD interacts terribly in regards to GC.12:42:28
@adis:blad.isadisbladisThe list of problems with IFD is long12:42:33
@adis:blad.isadisbladisAlso IFD is explicitly not allowed in nixpkgs which would make poetry2nix a non-starter for anything in nixpkgs12:42:52
@adis:blad.isadisbladisThe correct fix here is to fix upstream Poetry to properly record these dependencies in it's lock file12:43:18
20 Apr 2022
@jairo:recallstack.icuJairo Llopis
In reply to @adis:blad.is
The correct fix here is to fix upstream Poetry to properly record these dependencies in it's lock file
Thanks for the insight about this subject, indeed this fix would be the best. Has there been any movement upstream about it?
08:17:35
@adis:blad.isadisbladis
In reply to @jairo:recallstack.icu
Thanks for the insight about this subject, indeed this fix would be the best. Has there been any movement upstream about it?
https://github.com/python-poetry/poetry/pull/2794
08:21:51
@adis:blad.isadisbladisBut as of recently, no movement08:21:56
@adis:blad.isadisbladis I think we in Nix are one of very few users to actually bootstrap Python environments in a sandbox 08:25:44
@adis:blad.isadisbladisWhich is why almost no one runs into issues with this behaviour except us08:26:02
@jairo:recallstack.icuJairo Llopismost likely yes09:06:03
@FRidh:matrix.orgFRidh
In reply to @adis:blad.is
I think we in Nix are one of very few users to actually bootstrap Python environments in a sandbox
Maybe I misunderstood, but actually with pep 517/518 builds it is recommended also that front-ends create sandboxes. pip does this as well nowadays (though it's not very strict), and tools are specified in pyproject.toml. I'm surprised this isn't in the poetry lock files yet.
17:11:28
@ahsmha:matrix.orgrh joined the room.23:31:43
29 Apr 2022
@nazarewk:matrix.orgnazarewk joined the room.08:38:37
@nazarewk:matrix.orgnazarewkAny idea how do i install multiple poetry2nix apps (with executable scripts) into a single shell?08:39:30
@nazarewk:matrix.orgnazarewk * Any idea how do i install multiple poetry2nix apps (with executable scripts) in editable mode into a single shell?08:39:40
@nazarewk:matrix.orgnazarewk seems like mkPoetryEditablePackage does not add executables 08:39:53
@nazarewk:matrix.orgnazarewk I did use mkPoetryEnv with editablePackageSources, but the sources of my package still reside in /nix/store instead of current directory? 13:35:49
@nazarewk:matrix.orgnazarewkmaybe i did something really wrong, now it seems to work13:49:22
@nazarewk:matrix.orgnazarewkRedacted or Malformed Event13:49:48
2 May 2022
@jairo:recallstack.icuJairo Llopis
In reply to @nazarewk:matrix.org
I did use mkPoetryEnv with editablePackageSources, but the sources of my package still reside in /nix/store instead of current directory?
are you using flakes?
06:30:00
@adis:blad.isadisbladis
In reply to @jairo:recallstack.icu
are you using flakes?
I'm so annoyed by how flakes changes the semantics of paths...
06:32:59
@jairo:recallstack.icuJairo Llopis
In reply to @adis:blad.is
I'm so annoyed by how flakes changes the semantics of paths...
Yep, it's a bit annoying. However I love everything else of flakes. I'm using https://github.com/edolstra/flake-compat/pull/39 in some places to bridge the gap
06:35:28
@adis:blad.isadisbladis
In reply to @jairo:recallstack.icu
Yep, it's a bit annoying. However I love everything else of flakes. I'm using https://github.com/edolstra/flake-compat/pull/39 in some places to bridge the gap
At a previous client I used a modified version of that which doesn't do string interpolation of paths
06:41:43
@adis:blad.isadisbladisIt was kinda like that PR, but a bit more aggressive in not pulling things into the store06:43:24
@adis:blad.isadisbladisAnd I don't really think that lazily pulling things into the store is the solution here either06:44:31
4 May 2022
@nazarewk:matrix.orgnazarewkyes i am using flakes06:10:05
@nazarewk:matrix.orgnazarewkby the way i somehow managed to get the editable mode to work 08:07:09
5 May 2022
@silvio:booq.orgSilvio joined the room.23:08:01
6 May 2022
@a7p:matrix.orgAlbrecht joined the room.07:33:18
@a7p:matrix.orgAlbrechtGood morning - I'm trying to build "matrix-webhook" via poetry2nix, but I'm encounting infinite recursion in buildInputs and don't know how to debug it. I think I need to find out which dependency is the problem and then, may be replace it with a hopefully existing nixpkg-provided version of that package?07:36:50

Show newer messages


Back to Room ListRoom Version: 6