Re: [Module-build-general] A better passthrough Makefile.PL
Status: Beta
Brought to you by:
kwilliams
|
From: Autrijus T. <aut...@au...> - 2002-10-12 18:06:13
|
On Thu, Oct 03, 2002 at 06:54:15PM -0500, Dave Rolsky wrote:
> unless (eval { require Module::Build::Compat; 1 }) {
This may very well pass whilst the M::B requirement (0.11) exceeds
the user's own version (0.10), a situation that occured to me today.
Maybe should test for the minimal M::B version here?
> my $yn = ExtUtils::MakeMaker::prompt( ' Install Module::Build', 'y' );
> if ($yn =~ /^y(es)?/i) {
> # save this cause CPAN will chdir all over the place.
> my $cwd = cwd();
> my $makefile = File::Spec->rel2abs($0);
> require CPAN;
> CPAN->install('Module::Build');
This is largely a skeletal rework of ExtUtils::AutoInstall
functionalities. Are you interested with the idea that I work
a M::B compatibility layer into EU::AI, and for the bootstrap
code to include the EU::AI bootstrap code that, in addition
to fetch M::B automatically, also installs the prereqs
at 'Build' time?
Thanks,
/Autrijus/
|