Algorithm-Classifier-IsolationForest

 view release on metacpan or  search on metacpan

Makefile.PL  view on Meta::CPAN

# picks it up for blib and install.  Not in MANIFEST: it is per-install
# state, never shipped.
my $bf_path = 'lib/Algorithm/Classifier/IsolationForest/BuildFlags.pm';
open my $bf_fh, '>', $bf_path
	or die "Makefile.PL: can't write $bf_path: $!";
print $bf_fh <<"BUILDFLAGS";
package Algorithm::Classifier::IsolationForest::BuildFlags;

# AUTOGENERATED by Makefile.PL -- do not edit and do not add to MANIFEST.
# Records per-install C build configuration; regenerate by re-running
# `perl Makefile.PL` (with IF_* environment variables as desired).

use strict;
use warnings;

=head1 NAME

Algorithm::Classifier::IsolationForest::BuildFlags - C build flags captured at configure time

=head1 DESCRIPTION

Autogenerated by Makefile.PL.  Records the IF_* environment values that
were active when the distribution was configured, and whether a prebuilt
Inline::C object was scheduled for installation.  Read once by
Algorithm::Classifier::IsolationForest at load time; see "NATIVE
ACCELERATION" in that module's documentation.

=head1 FUNCTIONS

=head2 flags

Returns a hashref with the keys C<opt>, C<arch>, C<no_openmp>, and
C<prebuilt>.

=cut

sub flags {
	return {
		opt       => '$if_opt',
		arch      => '$if_arch',
		no_openmp => $if_no_openmp,
		prebuilt  => $prebuilt,
	};
}

1;
BUILDFLAGS
close $bf_fh or die "Makefile.PL: closing $bf_path failed: $!";

# Appended to the Makefile when the install-time build is on.  Modelled on
# what Inline::MakeMaker generates, with two differences: only the one
# module that actually embeds C gets a rule (Inline::MakeMaker emits one
# per .pm in lib/), and install mode is signalled to the module via
# IF_INSTALL_BUILD=1 in the rule's environment instead of a global
# -MInline=_INSTALL_ import, so the module can pass Inline's _INSTALL_
# config itself alongside NAME/VERSION.  Inline's install mode reads the
# version and blib/arch destination from @ARGV.  The trailing -e writes a
# stub .inl file satisfying the make dependency (also what
# Inline::MakeMaker does); the compiled object itself lands under
# blib/arch/auto/ and is picked up by `make install`.
sub MY::postamble {
	return '' unless $prebuilt;
	return <<'POSTAMBLE';
# --- Inline::C install-time build (generated by Makefile.PL):

Algorithm-Classifier-IsolationForest.inl : pm_to_blib
	IF_INSTALL_BUILD=1 $(PERL) "-Mblib" "-MAlgorithm::Classifier::IsolationForest" -e"require Inline; my %A = (modinlname => 'Algorithm-Classifier-IsolationForest.inl', module => 'Algorithm::Classifier::IsolationForest'); my %S = (API => \%A); Inline::s...

dynamic :: Algorithm-Classifier-IsolationForest.inl

POSTAMBLE
} ## end sub MY::postamble

my %WriteMakefileArgs = (
	NAME               => 'Algorithm::Classifier::IsolationForest',
	AUTHOR             => q{Zane C. Bowers-Hadley <vvelox@vvelox.net>},
	VERSION_FROM       => 'lib/Algorithm/Classifier/IsolationForest.pm',
	ABSTRACT_FROM      => 'lib/Algorithm/Classifier/IsolationForest.pm',
	LICENSE            => 'lgpl_2_1',
	MIN_PERL_VERSION   => '5.006',
	INST_SCRIPT        => 'bin',
	EXE_FILES          => ['src_bin/iforest'],
	CONFIGURE_REQUIRES => {
		'ExtUtils::MakeMaker' => '0',
	},
	TEST_REQUIRES => {
		'Test::More' => '0',
		'File::Temp' => '0',
		'JSON::PP'   => '0',
		'List::Util' => '0',
	},
	PREREQ_PM => {
		'App::Cmd'    => '0',
		'Carp'        => '0',
		'Config'      => '0',
		'File::Slurp' => '0',
		'File::Spec'  => '0',
		'File::Temp'  => '0',
		'JSON::PP'    => '0',

		# iforest streamd's wire protocol; XS-backed JSON when available,
		# pure-Perl JSON::PP fallback otherwise, so it is safe as a hard
		# prereq (streamd itself also degrades to a clear error without it).
		'JSON::MaybeXS' => '0',
		'List::Util'    => '0',
		'POSIX'         => '0',
		'Scalar::Util'  => '0',
		'Storable'      => '0',
	},
	dist  => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
	clean => {
		FILES => 'Algorithm-Classifier-IsolationForest-* *.inl '
			. 'lib/Algorithm/Classifier/IsolationForest/BuildFlags.pm'
	},
	META_MERGE => {
		"meta-spec" => { version => 2 },
		prereqs     => {
			runtime => {
				# Inline / Inline::C unlock the native scoring backend
				# (and OpenMP parallel tree-walk if libgomp is available
				# at build time).  The pure-Perl fallback works without
				# them, just slower, so they are recommends rather than
				# hard requires.
				recommends => {
					'Inline'    => '0',
					'Inline::C' => '0',

					# Unlocks the mungers knob: declarative raw-value ->
					# number munging for tagged data, with the spec saved
					# in the model.  Everything else works without it.
					'Algorithm::ToNumberMunger' => '0.0.1',
				},



( run in 0.499 second using v1.01-cache-2.11-cpan-acf6aa7dc9e )