[Module-build-general] no prereq detection with Module::Build->dispatch
Status: Beta
Brought to you by:
kwilliams
|
From: Jos I. B. <ka...@xs...> - 2003-09-12 14:39:36
|
Hi, i'm trying to add proper module::build support for CPANPLUS, but
i'm getting quite confused by the docs. On top of that, i think i've
run into a bug:
[kane@coke ~...Perl/mb_test]$ cat mb.pl
use Module::Build;
use Data::Dumper;
chdir 'Class-DBI-ToSax-0.09';
my $m = new Module::Build (module_name => 'Class::DBI::ToSax' );
$m->dispatch('build');
print Dumper $m->{properties};
[kane@coke ~...Perl/mb_test]$ perlc mb.pl
Checking whether your kit is complete...
Looks good
$VAR1 = {
'script_files' => [],
'build_script' => 'Build',
'perl' => '/opt/perl/bin/perl',
'build_requires' => {},
'dist_name' => 'Class-DBI-ToSax',
'base_dir' =>
'/Users/kane/Documents/Perl/mb_test/Class-DBI-ToSax-0.09',
'module_name' => 'Class::DBI::ToSax',
'conflicts' => {},
'requires' => {},
'recommends' => {},
'config_dir' => '_build',
'dist_version_from' => 'lib/Class/DBI/ToSax.pm',
'dist_version' => '0.09'
};
as you can see, it's not detecting any prerequisites...
however, seeing the Build.PL:
Module::Build->new(
module_name => 'Class::DBI::ToSax', license => 'perl',
requires => {
# Bug in 5.6.0 isa()...
'perl' => '5.6.1',
'Test::More' => 0,
# Both of these are required by Class::DBI, so shouldn't be too
# onerous...
'Class::Accessor' => 0,
'Class::Data::Inheritable' => 0,
# DCONWAY rocks.
'NEXT' => 0,
# Most people will want this and it's good for testing.
'XML::SAX::Writer' => 0,
},
)->create_build_script;
i've tried this for a few more modules, but none of them come up with
the prereqs.
A few more questions though.
* With a normal installation, one would do:
perl Build.PL
perl Build
perl Build test
perl Build install
this translates to the following dispatch table:
build
test
install
what action for 'dispatch' is equivalent to 'perl Build.PL' ?
is that the new call? i don't see that documented....
* Is there a nicer way to get the prereqs out of the $m object, rather
than poking into it?
--
Jos Boumans
"You know you are never more indignant in life than when you're
shopping at a store you feel is beneath you and one of the other
customers mistakes you for one of the employees of that store."
- Dennis Miller
CPANPLUS http://cpanplus.sf.net
|