AI-PredictionClient-Alien-TensorFlowServingProtos
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
delete $WriteMakefileArgs{BUILD_REQUIRES};
$WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
}
delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
unless eval { ExtUtils::MakeMaker->VERSION(6.52) };
WriteMakefile(%WriteMakefileArgs);
# BEGIN code inserted by Dist::Zilla::Plugin::AlienBuild
sub MY::postamble {
$abmm->mm_postamble;
}
# END code inserted by Dist::Zilla::Plugin::AlienBuild
use File::Copy::Recursive qw(dircopy dirmove);
use Archive::Extract;
use Alien::Google::GRPC;
use Env qw( @PATH );
unshift @PATH, Alien::Google::GRPC->bin_dir;
meta_prop->{my_libs} = Alien::Google::GRPC->libs;
meta_prop->{my_cflags} = Alien::Google::GRPC->cflags;
probe sub {
return 'share';
};
share {
download sub {
# The alien automagic obfuscates the actions taking place.
# Use some work arounds to make this work.
my $download_from_location = $ENV{'PWD'};
my $download_to_location = qx(pwd);
chomp $download_to_location;
dircopy( $download_from_location . '/alien_packages'
, $download_to_location);
};
extract sub {
my($build) = @_;
my $tarball = $build->install_prop->{download} . '/third_party/tensorflowserving_protofiles.tgz';
my $ae = Archive::Extract->new( archive => $tarball );
$ae->extract;
my $additional_files = $build->install_prop->{download} . '/tds';
dirmove($additional_files, './tensorflowserving_pb/tds');
move('./tensorflowserving_pb/Makefile', './tensorflowserving_pb/stray_makefile');
move('./tensorflowserving_pb/tds/Makefile', './tensorflowserving_pb/');
};
requires "Alien::Base" => "0";
requires "base" => "0";
requires "perl" => "5.01";
requires "strict" => "0";
requires "warnings" => "0";
on 'build' => sub {
requires "Alien::Build" => "0.40";
requires "Alien::Build::MM" => "0.40";
requires "ExtUtils::MakeMaker" => "6.52";
};
on 'test' => sub {
requires "Test::More" => "0";
};
on 'configure' => sub {
requires "Alien::Build" => "0.40";
requires "Alien::Build::MM" => "0.40";
requires "Alien::Google::GRPC" => "0.06";
requires "Archive::Extract" => "0";
requires "Env" => "0";
requires "ExtUtils::MakeMaker" => "6.52";
requires "File::Copy" => "0";
requires "File::Copy::Recursive" => "0";
};
on 'develop' => sub {
requires "Test::Pod" => "1.41";
requires "Test::Spelling" => "0.12";
};
( run in 0.235 second using v1.01-cache-2.11-cpan-4d50c553e7e )