On May 3, 2005, at 10:01 PM, David Wheeler wrote:
So please include Sub::Uplevel as a prereq.
Already am
http://search.cpan.org/src/ADIE/Test-Exception-0.20/Build.PL http://search.cpan.org/src/ADIE/Test-Exception-0.20/Makefile.PL
Actually, you're not.. you're declaring it as a prereq to *build* test::exception, not to run it:
[EMAIL PROTECTED] ~...build/Test-Exception-0.20]$ cat Build.PL
use Module::Build; my $build = Module::Build->new(
module_name => 'Test::Exception',
license => 'perl',
requires => {
'perl' => '5.6.1',
},
build_requires => {
'Test::Builder' => '0.13',
'Test::Builder::Tester' => '1.01',
'Test::More' => '0.44',
'Test::Harness' => '2.03',
'Sub::Uplevel' => '0.06',
},
create_makefile_pl => 'traditional',
create_readme => 1,
sign => 1,
);
$build->create_build_script;you should add thinks that are use'd in your .pm in 'requires', not 'build_requires'.
to find what prerequisites are needed by a module using a Build.PL, cpanplus uses this code:
sub _find_prereqs {
my $dist = shift;
my $mb = $dist->status->_mb_object;
my $self = $dist->parent; ### Lame++, at least return an empty hashref...
my $prereqs = $mb->requires || {};
$self->status->prereqs( $prereqs ); return $prereqs;
}and this code should arguably also probe 'build_requires' and 'recommends'...
So, short term fix for you: change build_requires to requires... and i'll research if the 'build_requires' and 'recommends' should be probed as well for these types of things...
--
Jos Boumans
"We are not far from the kind of moral decay that has brought on the fall of other nations and peoples" - Senator Barry Goldwater, 1964
CPANPLUS http://cpanplus.sf.net
