I'm creating a bundle to make it easy to install my app. I started here: http://search.cpan.org/dist/CPAN/lib/CPAN.pm#Bundles
I have a package Bundle::MyApp which looks like this:
package Bundle::MyApp;
$VERSION = '0.01';
1;
__END__
=head1 NAME
Bundle::MyApp - modules needed by my app
=head1 SYNOPSIS
cpan install Bundle::MyApp
=head1 CONTENTS
DateTime
Image::Size
I'm testing it on my local machine, so I put the package into my cpan folder, eg: ~/.cpan/Bundle/MyApp.pm
Now I can run it using cpan install Bundle::MyApp
and it works, except that it doesn't install the dependencies required by the modules I have listed. So in this example, cpan first tries to install DateTime but the install fails because DateTime::Locale is needed first, then it tries to install Image::Size and that fails too beacuse there are deps needed.
If I install the DateTime module directly via cpan using cpan install DateTime
it works fine and dependencies are installed.
So I'm looking for a way to tell CPAN to follow dependencies when its installing from my bundle. Is there something I need to put in my package? or maybe it's an issue with the CPAN config for my user account?