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
inkscape: add option for extra python packages #100565
base: master
Are you sure you want to change the base?
Conversation
Is that a built-in or third party extension? If the former, could we add the dependency to inkscape by default, if the latter, could we add the dependency to the extension? |
It's a third-party extension. I'm not sure if we could add the dependency to the extension because the extension uses the built-in python in inkscape. |
@jtojnar Do you mean adding it to extensions or the inkscape build with extensions? |
https://inkscape.org/develop/extensions/ suggests inkscape extensions may be in python, but don't need to be - so perhaps it is possible to use a different python for inkscape than for the extension. I started trying this out a bit in https://gist.github.com/raboof/bb744b45eb01443cd155956124a6e83d . I'm currently stuck getting it to find GTK3, though. If we can make this work, another advantage of this (aside better isolation) would be that you can add extensions to Inkscape without having to rebuild Inkscape itself. (I think we should be careful not to delay incremental improvements, like the one proposed in this PR, by searching for 'even better' solutions like "add the dependency to the extension". So if we can't make "add the dependency to the extension" work soon-ish we should consider the approach proposed in this PR again) |
Updated the gist to use tkinter: https://gist.github.com/raboof/bb744b45eb01443cd155956124a6e83d This shows this approach can work: with this |
PyGI is in python3.pkgs.pygobject3. It will require properly set environment to run: https://nixos.org/manual/nixpkgs/stable/#ssec-gnome-hooks-gobject-introspection |
Now proposed as #121711 |
I marked this as stale due to inactivity. → More info |
Motivation for this change
Certain inkscape extensions (particularly textext) need extra python packages, and this allows inkscape to be built with these extra packages.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)