develooper Front page | perl.module.build | Postings from February 2012

Re: Ending Build.PL if there are missing modules

Thread Previous | Thread Next
From:
Alberto Simões
Date:
February 4, 2012 02:53
Subject:
Re: Ending Build.PL if there are missing modules
Message ID:
4F2D0E2B.2010406@alfarrabio.di.uminho.pt
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

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About