=== modified file 'Build.PL'
--- Build.PL 2015-03-08 18:05:07 +0000
+++ Build.PL 2016-01-04 17:12:32 +0000
@@ -3,6 +3,8 @@
use Module::Build;
+use constant HAVE_M_B_TEST_REQUIRES => $Module::Build::VERSION >= '0.4004';
+
# This version of Future contains an important bugfix around weak references
# in sequence Futures. Unfortunately, a lot of existing CPAN code is known to
# rely on this behaviour, and will break if this module is upgraded.
@@ -49,7 +51,7 @@
my $build = Module::Build->new(
module_name => 'Future',
- test_requires => {
+ ( HAVE_M_B_TEST_REQUIRES ? "test_requires" : "configure_requires" ) => {
'Test::Identity' => 0,
'Test::Fatal' => 0,
'Test::More' => '0.88', # done_testing
@@ -70,9 +72,7 @@
map { $_ => "< $FIXED{$_}" } keys %FIXED
}},
},
- configure_requires => {
- 'Module::Build' => '0.4004', # test_requires
- },
+ auto_configure_requires => 0, # Don't add M::B
license => 'perl',
create_makefile_pl => 'traditional',
create_license => 1,