python3Minimal: remove dependency on pkg-config + add withMinimal flag#417581
python3Minimal: remove dependency on pkg-config + add withMinimal flag#417581mweinelt merged 2 commits intoNixOS:python-updatesfrom
Conversation
e7ed88f to
0701532
Compare
|
@mweinelt Does this change make sense? |
|
Yes, I was just annoyed by the It should be |
|
Perhaps it would be a good idea to avoid adding a bunch of independent (FWIW it looks like we have a few instances of |
There was a problem hiding this comment.
Have you checked python3Minimal still builds on Darwin with this change? (I can test it if not.)
Edit: Er, sorry, mentally inverted the conditional.
|
Need to make a decision soon to hit the next staging cycle. |
Are you sure? I think removing these flags would have the downside that overriding individual flags would not propagate as expected anymore. For example, if I remove ... would have to change to The consequence is that it would be harder to re-introduce libxcrypt via override. Optimally the Let me know if you still want me to remove these flags, and I'll do it. Naming
EDIT: Looking at ffmpeg which has several flavors, I think it makes sense to follow the naming there and call it |
Sounds good to me. |
I’m not a Python maintainer, so take what I have to say with a grain of salt; it’s really up to @mweinelt :) For me it’s about public API and what’s supported. Overriding dependencies manually to It may be that there’s sufficient demand for “almost‐minimal Pythons” that having separate toggles makes sense. OTOH, in the Darwin bootstrap, we need more than Thanks again for working on this. I’m eager to see less Bash. I wanted to use Python in #418819 to make it less slow but it wasn’t really an option since I needed to use it in the GCC package. |
|
Can you migrate to |
simplifies the interface of building cpython minimally
Removes the build time dependency on pkg-config if python3 is build with the `withMinimal` flag enabled This change is driven by the motivation to use python3 earlier in stdenv for hooks.
|
Wrt to what @emilazy pointed out … I don't think this is the venue to discuss the surface area of our public API. |
Best reviewed via individual commits.
The first commit is a pure refactoring commit which introduces a
withMinimalflag for cpython.The second commit removes the dependency on pkg-config if
withMinimalis enabled.This change is driven by the motivation to use python3 earlier in stdenv for hooks.
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.