This fixes RT#59460. (Curtis Jewell)
[gitmo/Mouse.git] / Makefile.PL
index d7ae893..dff623f 100755 (executable)
@@ -1,14 +1,14 @@
 # for developpers:
 BEGIN{
     if(grep{ $_ eq '--author' } @ARGV){
-        print "^X -S cpanm < author/requires.cpanm\n";
+        print "$^X -S cpanm < author/requires.cpanm\n";
         system "$^X -S cpanm < author/requires.cpanm";
     }
 }
 
 use strict;
 use warnings;
-use inc::Module::Install;
+use inc::Module::Install 0.99;
 
 # for co-developpers
 use Module::Install::XSUtil 0.24;
@@ -26,7 +26,9 @@ requires 'Scalar::Util' => 1.14;
 
 test_requires 'Test::More'      => 0.88;
 test_requires 'Test::Exception' => 0.29;
-test_requires 'Test::Requires'  => 0.03;
+if ( $ENV{RELEASE_TESTING} || (grep { $_ eq '--author' } @ARGV) ) {
+    test_requires 'Test::Requires'  => 0.03;
+}
 # test_requires 'Test::Output'    => 0.16; # too many dependencies!
 
 if($] < 5.010) {
@@ -34,7 +36,7 @@ if($] < 5.010) {
 }
 
 my %suggests = (
-    'Class::Method::Modifiers::Fast' => 0.041,
+    'Data::Util'                     => 0.55,
     'MouseX::AttributeHelpers'       => 0.06,
 );