Add an envvar to prevent deps from being installed

It's optional and defaults to off but people can set it if they would
like to install the dependencies in a different way.
This commit is contained in:
Shlomi Fish 2012-05-17 17:40:12 +03:00
parent 4bffa9cb6b
commit a64dcd0a0f

View File

@ -27,7 +27,11 @@ my $build = Module::Build->new(
}, },
script_files => ['slic3r.pl'], script_files => ['slic3r.pl'],
); );
$build->dispatch('installdeps');
$build->dispatch('test', verbose => 0); if (not $ENV{SLIC3R_NO_AUTO})
{
$build->dispatch('installdeps');
$build->dispatch('test', verbose => 0);
}
$build->create_build_script; $build->create_build_script;