On May 3, 2005, at 10:01 PM, David Wheeler wrote:[snip]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:
you should add thinks that are use'd in your .pm in 'requires', not 'build_requires'.
D'oh! You're completely right. My bad. Sorry.
to find what prerequisites are needed by a module using a Build.PL, cpanplus uses this code:[snip]
and this code should arguably also probe 'build_requires' and 'recommends'...
I'd say it should definitely probe build_requires, but 'recommends' seems more tricky. According to the M::B docs:
Automated tools like CPAN.pm should inform the user when recom- mended modules aren't installed, and it should offer to install them if it wants to be helpful.
but there isn't really a place in CPANPLUS that I can see for something that's a "less important" requirement. I'd tend towards ignoring them myself since (according to M::B)
If a module is recommended but not required, all tests should still pass if the module isn't installed. This may mean that some tests will be skipped if recommended dependencies aren't present.
Cheers,
Adrian (wandering off to fix his CPAN distributions muttering 'idiot' to himself and smacking his forehead in disgust)
