use eval to check for Bio::Root::Build
[bioperl-network.git] / Build.PL
blob8fce98c81201b1558f9203bd23ec1edeaf7a8d9d
1 #!/usr/bin/perl -w
3 # This is a Module::Build script for bioperl-network installation.
4 # See http://search.cpan.org/~kwilliams/Module-Build/lib/Module/Build.pm
6 # Uses a custom subclass of Module::Build called Bio::Root::Build
8 use strict;
9 my $v = '1.007000'; # requires bioperl-live main trunk
10 eval "use Bio::Root::Build $v";
11 if ($@) {
12 # using die so wrappers can catch the error message
13 die "BioPerl minimal core version $v is required for BioPerl-network\n";
16 # Set up the Bio::Root::Build object
17 my $build = Bio::Root::Build->new(
18 module_name => 'Bio',
19 dist_name => 'BioPerl-network',
20 dist_version => $v,
21 dist_author => 'BioPerl Team <bioperl-l@bioperl.org>',
22 dist_abstract => 'BioPerl-network - package for biological networks',
23 license => 'perl',
24 requires => {'perl' => '5.6.1',
25 #'Bio::Root::Version' => '1.006000', # checked above
26 'Graph' => 0.86 },
27 recommends => {'XML::Twig' => '3.22/parsing PSI XML/Bio::Graph::IO::psi'},
28 dynamic_config => 1,
29 create_makefile_pl => 'passthrough'
31 #pm_files => {} # modules in Bio are treated as if they were in lib and auto-installed
32 #script_files => [] # scripts in scripts directory are installed on-demand
35 # Create the build script and exit
36 $build->create_build_script;
38 exit;