Lyle wrote: > Hi All, > Looking more at makefiles, in your Makefile.PL or Build.PL you have > the usual pre-requisites in PREREQ_PM. But what if your Perl module > requires other modules Only if certain features are used. > Is there a possible requisites you can define? So that when the module > is built with cpan, it pauses asking if you want the extra modules > installed and defaults to no if you don't respond is 30 seconds?
1/ Module::Build supports a "recommends" feature alongside the "requires" feature. The absence of a recommended module won't stop the module from building successfully. 2/ There are a number of CPAN modules that do incredibly complex things in either Makefile.PL or Build.PL. You can prompt the user for all sorts of information before writing out the Makefile or Build script. 3/ If you're prompting people for information, them please provide a method to support unattended building and installation - either by setting configuration options or by using default values. People using automated builds all over the world will thank you. 4/ I like the way that the Template Toolkit does it. The distribution comes with plugins that wrap around many CPAN modules. But if a particular module isn't installed, it doesn't make a fuss and installs the plugin anyway. If, later on, you install the module that the plugin needs then it just starts to work. hth, Dave... _______________________________________________ BristolBathPM mailing list [email protected] http://mailman.bristolbath.org/mailman/listinfo/bristolbathpm
