X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=cac6e77b65309e1e207478778bc2389144e7a7e3;hb=a1e1a51f99ae4a98e8e0026ebe9ccb000330576b;hp=a71490025eb540fe71911028c1b2fa0a27e85551;hpb=b6cd6478dc4f3fdf7a4fbee12bb40e2030571fcb;p=dbsrgits%2FDBIx-Class.git diff --git a/Makefile.PL b/Makefile.PL index a714900..cac6e77 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -24,6 +24,14 @@ if (@ARGV) { warn "\nIgnoring unrecognized option(s): @ARGV\n\n"; } +# get cpanX --installdeps . to behave in a checkout (most users do not need +# the deps for a full test suite run, and if they do - there's MI::AutoInstall +# for that) +## +## DO NOT USE THIS HACK IN YOUR DISTS!!! (it makes #toolchain sad) +## +$Module::Install::AUTHOR = 0 if (grep { $ENV{"PERL5_${_}_IS_RUNNING"} } (qw/CPANM CPANPLUS CPAN/) ); + ### ### DO NOT ADD OPTIONAL DEPENDENCIES HERE, EVEN AS recommends() ### All of them should go to DBIx::Class::Optional::Dependencies @@ -176,7 +184,7 @@ eval { recursive_author_tests (qw/xt/); 1; } || do { - unless ($args->{skip_author_deps}) { + if ($Module::Install::AUTHOR && ! $args->{skip_author_deps}) { my $err = $@; eval { require Module::Install::AuthorTests } || die "\nYou need Module::Install::AuthorTests installed to run this Makefile.PL in author mode (or supply --skip_author_deps):\n\n$@\n";