Repository navigation
python3Packages.shiboken6: don't propagate shiboken6-generator - #556150
Conversation
|
|
ce95cb4 to
72ca7fc
Compare
|
|
You really should at least build pyside6 with this, and ideally some of the KDE stuff with Python bindings too (which should be trivial once you have pyside6). |
|
Actually, why the hell are you rebuilding qtwebengine anyway. |
|
Nice, on nixpkgs-review restart i no longer need to build qtwebengine, will do soon |
Oh i know why, i catched a weird bug in ncro qweered/hyprnixos@3e5d5eb |
|
|
OK, I'm just going to throw this on Big Computer overnight. |
Measured on a PySide6 application, dropping the propagation removes 17 paths and 1.72 GiB, 813 MiB of which is clang-21.1.8-lib alone. The generator is now depended on directly by the packages that run it to generate bindings: pyside6 and the KDE python bindings. pyside6-qtads already did this. Assisted-by: claude-code with claude-opus-5[1m]-high
72ca7fc to
709d338
Compare
|
OK, nixpkgs-review found no issues except Cutter, which is fixed by adding shiboken6-generator. I'm going to merge this into staging-next to save some rebuilds. |
Review dismissed automatically
c6936a9
nixpkgs split the shiboken6 generator binary out of shiboken6 into python3Packages.shiboken6-generator (NixOS/nixpkgs#556150, hook in #556388); shiboken6 now ships only include/lib. Without the generator package on nativeBuildInputs every python-bindings package dies at the type-generator step with 'shiboken6: command not found' (seen in sonic-frameworks-core-addons 6.27.0). Mirrors nixpkgs pkgs/kde/lib/mk-kde-derivation.nix lines 119-120.

Measured on a PySide6 application, dropping the propagation removes 17 paths and 1.72 GiB, 813 MiB of which is clang-21.1.8-lib alone.
The generator is now depended on directly by the packages that run it to generate bindings: pyside6 and the KDE python bindings. pyside6-qtads already did this.
freecad needs no change. Its FindShiboken6.cmake only falls back to the generator's include directory when find_package(Shiboken6 CONFIG) fails, which is the pip layout where the headers ship in the generator wheel. nixpkgs' shiboken6 installs Shiboken6Config.cmake and all 41 headers, and exports them through Shiboken6::libshiboken, so the fallback is never reached. freecad never invokes the generator binary either.
Assisted-by: claude-code with claude-opus-5[1m]-high
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.