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