!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

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

Load older messages


SenderMessageTime
10 Jul 2024
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)then I defined some largish package sets of 'important' python packages10:17:21
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)tried building every single one of them10:17:32
@truh:matrix.orgtruhI thought that couldn't be done because poetry2nix would need this info to be in the poetry.lock of the main project10:17:47
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)and found that poetry2nix can only do 41% of them.10:17:52
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)
In reply to @truh:matrix.org
I thought that couldn't be done because poetry2nix would need this info to be in the poetry.lock of the main project
well, nobody told me. I just went down to where the actual package is being build, and said 'nix, look into the $src'
10:18:38
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)so after all the resolution of 'what version we need' has been done.10:18:57
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)and of course that does have the drawback that nix has to download the source before it knows how to build the package 10:19:15
@truh:matrix.orgtruhI guess if you don't need the info earlier than that it should work out.10:19:37
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)it's the same place that overrides/build-systems.json comes into play10:19:52
@truh:matrix.orgtruhOh really, never made it that far into the abyss myself10:20:41
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)and now I'm thinking that there's terrible little difference between 'fileExists ${src}/pyproject.toml', and actually importTOML10:20:59
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)and yes, obviously it would be worlds nicer if poetry.lock actually had version-locked build-system information.10:21:15
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)but it don't10:21:18
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)and I think that we're pulling the build-system packages from nixpkgs anyway.10:21:32
@truh:matrix.orgtruhI was wondering how the build systems were bootstrapped in p2n10:23:48
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)I haven't dug into it, but at least I couldn't get anything using 'whey' to actually be build easily.10:24:08
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)(that's a (minor) python build system)10:24:17
@truh:matrix.orgtruhI saw that, I asummed it should just work if you tell it which build system to add to the buildInputs as long as the p2n is actually able to build the build system. But there is something about known build systems in poetry2nix, maybe that's required10:27:21
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)tried that, and well, I have added things to build-system-overrides that ain't in that list, and whey won't be found even if in that list, so I don't know.10:29:02
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)It's a series of overlays, all teh way down10:30:29
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)if only I wasn't fighting the CI so hard.10:34:46
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)(one turn around on github takes 3-ish hours)10:34:54
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)and, well the way it's setup, you can somewhat run it locally with act10:35:07
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)after you've commented out all the tests you don't care about10:35:18
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)and if you haven't commited10:35:20
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)also things weirdly fail with 'you have a /homeless-shelter', so somehow the env is not quite as it is in the actions10:36:05
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)(you can run the tests individually using nix, but again, it's not quite the same env)10:36:20
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)and... the aarch64 test failed once again.10:37:11
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)I think it's also some kind of aggregate test-lots-of-things thing. Why you even have a matrix of os * tests...10:37:29
@truh:matrix.orgtruh Yesterday I waited for a CI build for over an hour just to realize I had forgotten -L after nix build and gained basically no insight at all. 10:37:35

Show newer messages


Back to Room ListRoom Version: 6