Thanks for your comments Adekunle Adekunle Olonoh wrote: >>I've posted this about 6 months ago, but got no feedback. I guess I'll >>just go ahead and release the module. >> > > I don't remember the previous post, but I'll answer now.... > > > >>I've attached a new module (very small) called CPAN::Grab. >> > > This is a really great idea. I could've used something like this not > too long ago. > > > >>- Should it be integrated with CPAN.pm shell? >> > > I'd probably see myself using this separately from the CPAN.pm shell. I > think of CPAN.pm's functionality as installing modules on the local > system, not downloading modules. CPAN::Grab isn't used to install the > modules locally, so to me they don't seem compatible conceptually.
makes sense >>- Should MakeMaker be aware of it? >> > > I think this could be very helpful, except you have to determine how > deep to go. If my module Foo requires Bar and Bar requires Baz, then > will it download Baz too? > > Similarly, what do you think about using CPAN::Grab to also download > prerequisites of the modules you initially specify? This should be > optional of course, but might be helpful as the point is targeting the > bundle for systems that aren't using the CPAN.pm shell. Without CPAN.pm > they loose the functionality of being able to download prerequisites > automatically. I'll need to dig into CPAN.pm to re-use me this functionality, I'm not keen on reinventing the wheel. The real problems with prerequisites are: - some modules don't specify prerequisites :( But I think we can add code to parse the code to figure out simple require and use cases. Weren't there a module doing this? I think I read about it in some old TPJ. Anyone? - should you bundle only prerequisites which aren't installed on the system the bundler runs on, or should it take all the prerequisites. I guess this could be an option. - what happens if a certain version of perl is a prerequisite? Should it be grabbed too? But then it's not perl Makefile.PL && make install. This could be a big problem. I suppose there are other issues I didn't think about. Another problem to resolve is when installing the bundle somehow the modules should be installed in a certain order ensuring that basic prerequisites will be installed before the modules needing these. I think this dependency tree can be built during the bundling process. >>- Is CPAN::Grab is the right name? >> > > How about CPAN::Bundler? Grab doesn't seem descriptive enough. CPAN.pm > "grabs" modules already, but this module does more than that. Good idea. If nobody comes up with another name, it'll be CPAN::Bundler _____________________________________________________________________ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://ticketmaster.com http://apacheweek.com http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
