Don't check cpanm existence if SLIC3R_NO_AUTO
This commit is contained in:
parent
ddc8727b70
commit
f32551bd35
4
Build.PL
4
Build.PL
@ -45,8 +45,7 @@ if ($ENV{SLIC3R_NO_AUTO}) {
|
||||
next if eval "use $module $version; 1";
|
||||
print "Missing optional $module $version\n";
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
my @try = (
|
||||
$ENV{CPANM} // (),
|
||||
File::Spec->catfile($Config{sitebin}, 'cpanm'),
|
||||
@ -87,6 +86,7 @@ foreach my $module (sort keys %modules) {
|
||||
my $res = system $cpanm, "$module~$version";
|
||||
$skip_tests = 1 if $res != 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (eval "use App::Prove; 1" && !$skip_tests) {
|
||||
App::Prove->new->run;
|
||||
|
Loading…
Reference in New Issue
Block a user