1 package Module::Install::AutoInstall;
4 use Module::Install::Base ();
6 use vars qw{$VERSION @ISA $ISCORE};
9 @ISA = 'Module::Install::Base';
13 sub AutoInstall { $_[0] }
17 $self->auto_install_now(@_);
22 $self->auto_install(@_);
27 return if $self->{done}++;
29 # Flatten array of arrays into a single array
30 my @core = map @$_, map @$_, grep ref,
31 $self->build_requires, $self->requires;
35 # We'll need Module::AutoInstall
36 $self->include('Module::AutoInstall');
37 require Module::AutoInstall;
39 Module::AutoInstall->import(
40 (@config ? (-config => \@config) : ()),
41 (@core ? (-core => \@core) : ()),
45 $self->makemaker_args( Module::AutoInstall::_make_args() );
47 my $class = ref($self);
49 "# --- $class section:\n" .
50 Module::AutoInstall::postamble()
54 sub auto_install_now {
56 $self->auto_install(@_);
57 Module::AutoInstall::do_install();