Re: DWIM bundling dependencies
David Golden <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.module-build |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Sep 11, 2009 at 10:42 PM, Eric Wilhelm <[email protected]> wrote: >>Like I said, ScanDeps/TraceDeps should work most of the time. > > Devel::TraceDeps is very different from Module::ScanDeps. There's > no "most of the time" about it -- it tells you everything that got > loaded via require() or use(). Uh, huh. How about all that platform specific code that doesn't get loaded? E.g. Module::Build::Platform::VMS. The same kind of platform specific stuff happens elsewhere, like Devel::CheckOS. So it's never just a matter of seeing what loads and bundling that. There are always going to be heuristics to figure out the complete set of things to bundle. Having an 02packages file from a CPAN to map from a requested module to a distribution and then interrogating the distribution metadata is, in my opinion, the most robust way to do this. I think requiring a distribution author to have a CPAN handy is a really, really low bar. David