Re: Ending Build.PL if there are missing modules
Alberto Simões <[email protected]> Sat, 04 Feb 2012 10:53:31 +0000
| Newsgroups | gmane.comp.lang.perl.modules.module-build |
|---|---|
| Organization | Departamento de Informática - Universida de do Minho |
| Message-ID | <[email protected]> |
Hello On 04/02/12 01:33, Michael G Schwern wrote: > On 2012.2.3 3:22 PM, Leon Timmermans wrote: >> You shouldn't make it stop. =C2=ABperl Build.PL=C2=BB does configurati= on, not >> building. Hence build or runtime requirements are not required to be >> satisfied. What you're observing is not an error in any way, but an >> essential step in the process. It gives the install tool the chance to >> tell the cpan client (or the end user, if he's installing by hand) the >> opportunity what dependencies to install. > > MakeMaker has something like what Alberto wants, PREREQ_FATAL. It's > considered a misfeature for exactly the reasons above. It doesn't let = the > configuration step complete so tools cannot resolve the dependencies an= d > continue building. > > Alberto, what are you trying to accomplish here? There's probably a wa= y to do it. Basically, I depend on Parse::Yapp, and I would like to call `yapp` on=20 Build.PL so I can have the generated .pm file before M::B generates all=20 its data dir. In fact, I can add that to inc/MyBuilder.pm, but I am afraid the=20 generated .pm will not be installed. But probably I am just too used to MakeMaker and M::B will work just fine= :) Cheers ambs