-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
python311Packages.scs: fix build; 3.2.3 -> 3.2.4 #268178
Conversation
Annoying that they don't use pkg-config for that. |
cc @renesat given past changes |
yeah -- i don't know meson well, but changing cc.find_library -> dependency and adding pkg-config works well on linux -- no env vars needed. |
That might be a good thing to propose upstream, if you're interested. |
proposed -- doesn't work with their CI for some reason. I was hoping dependency would fall back to find_library, but it doesn't seem to. |
after numpy updated to 1.26.1 distutils no longer provides the lib locations so use env vars for non-darwin. On darwin Accelerate library is prioritized over BLAS so add Accelerate to buildInputs.
Awesome work! |
numpy change 1.25.1 -> 1.26.1 237a590 moved away from distutils and the scs build was unable to locate the blas and lapack libs and failed.
this change fixes the build by adding env vars so the build can locate the blas lapack libs for linux and the Accelerate lib for darwin. scs is then updated to 3.2.4. incorporates upstream PR bodono/scs-python#78 to use pkg-config and add myself as maintainer so i can remove the patches on the next version update.
Note that the linear algebra library for darwin is Accelerate as that is prioritized over blas / lapack by the build.
https://hydra.nixos.org/build/241138404
ZHF: #265948
bambi failures due to numpy < 1.26 constraints in pytensor
Result of
nixpkgs-review
run on x86_64-linux 128 packages marked as broken and skipped:
4 packages failed to build:
24 packages built:
Description of changes
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)