forgot to update changes for previous rev
[gitmo/Moose.git] / Build.PL
index b4a6f44..b48124f 100644 (file)
--- a/Build.PL
+++ b/Build.PL
@@ -1,18 +1,20 @@
 use Module::Build;
 
 use strict;
+use warnings;
+
+# Scalar::Util 1.18 doesn't work on Windows
+my $win32 = !! ( $^O eq 'Win32' or $^O eq 'cygwin' );
 
 my $build = Module::Build->new(
     module_name => 'Moose',
     license => 'perl',
     requires => {
-        'Scalar::Util'       => '1.18',
+        'Scalar::Util'       => $win32 ? '1.17' : '1.18',
         'Carp'               => '0',
-        'Class::MOP'         => '0.30',
+        'Class::MOP'         => '0.37',
         'Sub::Name'          => '0.02',
-        'UNIVERSAL::require' => '0.10',
-        'Sub::Exporter'      => '0.954',
-        'Sub::Install'       => '0.92',   
+        'Sub::Exporter'      => '0.972',   
         'B'                  => '0',             
     },
     optional => {