Re: Ending Build.PL if there are missing modules

[email protected] (Alberto Simões) Sat, 04 Feb 2012 10:53:31 +0000
Newsgroups perl.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. «perl Build.PL» does configuration, 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 and
> continue building.
>
> Alberto, what are you trying to accomplish here?  There's probably a way to do it.

Basically, I depend on Parse::Yapp, and I would like to call `yapp` on 
Build.PL so I can have the generated .pm file before M::B generates all 
its data dir.

In fact, I can add that to inc/MyBuilder.pm, but I am afraid the 
generated .pm will not be installed.

But probably I am just too used to MakeMaker and M::B will work just fine :)

Cheers
ambs