!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

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

Load older messages


SenderMessageTime
10 Jul 2024
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)yeah, I've been at least stealing the patches from nixpkgs, but you're right, they only need to work with one exact version10:11:05
@truh:matrix.orgtruhI somewhat surprised opencv-python ever worked without the nixpkgs stuff, given that they download stuff during the cmake build10:11:12
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)
In reply to @truh:matrix.org
I somewhat surprised opencv-python ever worked without the nixpkgs stuff, given that they download stuff during the cmake build
I can't comment on that, since I have no clue about opencv or it's build process. I just went and tried to fix as many packages as possible
10:11:50
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)(and my test 'matrix' is already bonkers... I try to build 17k python packages, each individually locked by poetry, and that ends up being >100k package*version builds.)10:12:55
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)(my nixpkgs copy doesn't seem to have opencv-python at al. or maybe not in python-modules at least)10:13:34
@truh:matrix.orgtruhScreenshot 2024-04-29 at 17.14.15.png
Download Screenshot 2024-04-29 at 17.14.15.png
10:13:54
@truh:matrix.orgtruhpython3Packages.opencv4 is https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/opencv/4.x.nix10:14:42
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)no I do it because I've failed my will power check and now I have a brain bug that says 'must build more packagesssss'10:14:47
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)but I'll get this PR landed, and then I'll have a look at whether or not poetry2nix is actually reading the build-systems from pyproject.toml ^^10:15:51
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)but I really wanted it to got from 41% build packages to 82%... I'm only at 80% 10:16:29
@truh:matrix.orgtruhno more manual overrides for setuptools, etc?10:16:30
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)the PR started with 'hey, we can just add setuptools if we see a setup.py but no pyproject.toml', and then we can get rid of half of these build-overrides10:16:55
@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

Show newer messages


Back to Room ListRoom Version: 6