Load MRO::Compat after Class::C3 so Class::C3::{,re,un}initialize are no-ops on 5.10.
[p5sagit/Class-C3-Componentised.git] / Makefile.PL
index f23f7f5..09ff4d4 100644 (file)
@@ -5,11 +5,18 @@ all_from  'lib/Class/C3/Componentised.pm';
 author    'Ash Berlin <ash@cpan.org>';
 
 
-requires  'Class::C3';
+requires  'MRO::Compat';
 requires  'Class::Inspector';
 requires  'Carp';
 requires  'Test::Exception';
 
+# we don't actually need Class::C3. MRO::Compat loads it on 5.8. On 5.10 it
+# isn't needed. However, some existing code relies on us loading Class::C3. We
+# don't want to break it just yet. Therefore we depend directly on Class::C3 as
+# well.
+
+requires  'Class::C3' => '0.20';
+
 build_requires 'FindBin';
 
 WriteAll;