From: Doug B. <dou...@gm...> - 2013-09-17 00:31:15
|
On Mon, Sep 16, 2013 at 8:20 PM, Paul Franklin <pf....@gm...> wrote: >> I suppose I am saying that there should be no dependency-optional >> packages in core Gramps. And we should NOT depend on things that need >> to be manually built. > > I agree with both those those statements 100%. I appreciate the sentiment of those statements, but I don't think that this practical. For example, some dependencies were available on Fedora 13, but had to be manually built on Ubuntu 12.04. What then? And some things get added to a distribution because they are used. If we don't use them, then they never will get included. A catch-22. >> If we move everything that depends on optional packages into addons >> (generally, but spell checking is a problem), then the "Install >> Selected Addons" in the "Avaialable Gramps Updates for Addons" should >> really check whether the optional packages are present before >> installing the addons. > > I would think this could be relatively easily done, by putting > an "import" into the relevant foo.gpr.py file which checks for > /every dependency/ the plugin needs (with possible imports > of the gi.repository first, for fussy ones), and /only/ if /every/ > dependency is present would the plugin be loaded/mentioned. gpr files were meant to be as close to a config file as possible, with little chance of failing. But I like the idea of a bit of code in the addon/plugin that would try to run, and if it failed, then the addon/plugin would give a message, and de-activate (hide) itself. Maybe that bit of code is just the loading of it. -Doug > ------------------------------------------------------------------------------ > LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! > 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint > 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes > Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. > http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk > _______________________________________________ > Gramps-devel mailing list > Gra...@li... > https://lists.sourceforge.net/lists/listinfo/gramps-devel |