3 use inc::Module::Install;
8 all_from 'lib/Moose.pm';
11 # Scalar::Util 1.18 doesn't work on Windows
12 my $win32 = !! ( $^O eq 'Win32' or $^O eq 'cygwin' );
15 requires 'perl' => '5.008';
16 requires 'Scalar::Util' => $win32 ? '1.17' : '1.18';
18 requires 'Class::MOP' => '0.66';
19 requires 'List::MoreUtils';
20 requires 'Sub::Exporter' => '0.972';
22 # only used by oose.pm, not Moose.pm :P
23 requires 'Filter::Simple' => '0';
25 # things the tests need
26 build_requires 'Test::More' => '0.62';
27 build_requires 'Test::Exception' => '0.21';
28 build_requires 'Test::LongString';
34 # Use the cpan-smolder-stable script in the Moose svn root to figure
35 # out what on CPAN will break with the latest Moose, then update this
39 'MooseX::Singleton' => '0.11',
40 'MooseX::Params::Validate' => '0.05',
45 for my $mod ( sort keys %conflicts ) {
49 my $installed = $mod->VERSION();
50 if ( $installed le $conflicts{$mod} ) {
55 This version of Moose conflicts with the version of
56 $mod ($installed) you have installed.
58 You will need to upgrade $mod after installing
59 this version of Moose.
70 # More or less copied from Module::Build
71 return if $ENV{PERL_MM_USE_DEFAULT};
72 return unless -t STDIN && (-t STDOUT || !(-f STDOUT || -c STDOUT));