Don't check cpanm existence if SLIC3R_NO_AUTO

This commit is contained in:
Alessandro Ranellucci 2013-06-24 16:39:31 +02:00
parent ddc8727b70
commit f32551bd35

View File

@ -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;