protected function sourceInstall($package, InputInterface $input, OutputInterface $output, $optionsValue = [], $force_opts = '')
{
$php = Engine::factory();
$helper = $this->getHelperSet()->get('question');
$build = \Pickle\Package\Command\Build::factory($package, $optionsValue);
try {
$build->prepare();
$build->createTempDir($package->getUniqueNameForFs());
$build->configure($force_opts);
$build->make();
$build->install();
$this->saveBuildLogs($input, $build);
} catch (\Exception $e) {
$this->saveBuildLogs($input, $build);
$output->writeln('The following error(s) happened: ' . $e->getMessage());
$prompt = new ConfirmationQuestion('Would you like to read the log?', true);
if ($helper->ask($input, $output, $prompt)) {
$output->write($build->getLog());
}
}
$build->cleanup();
}