Reimplement SLIC3R_NO_AUTO
This commit is contained in:
parent
625a300822
commit
9e927ffaf9
8
Build.PL
8
Build.PL
@ -69,8 +69,14 @@ EOF
|
||||
my %modules = (%prereqs, %recommends);
|
||||
foreach my $module (sort keys %modules) {
|
||||
my $version = $modules{$module};
|
||||
system $cpanm, "$module~$version";
|
||||
if ($ENV{SLIC3R_NO_AUTO}) {
|
||||
print "Missing prerequisite $module $version\n"
|
||||
if !eval "use $module $version; 1";
|
||||
} else {
|
||||
system $cpanm, "$module~$version";
|
||||
}
|
||||
}
|
||||
exit if $ENV{SLIC3R_NO_AUTO};
|
||||
|
||||
if (eval "use App::Prove; 1") {
|
||||
App::Prove->new->run;
|
||||
|
Loading…
Reference in New Issue
Block a user