[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ModPerl::MM or ExtUtils::MakeMaker or what?


Hi,

I am a bit confused about what MakeMaker is best to use with mp2 modules. 
There is the good old ExtUtils::MakeMaker that is mentioned in 
http://perl.apache.org/docs/general/testing/testing.html. How I got there I 
don't remember but I have used in all my modules ModPerl::MM. Is that right? 
Or should I rather port them to use the former?

I am asking because I have had FAIL reports from CPAN testers that don't 
install ModPerl::MM. The way around these reports is using

BEGIN {
  eval {
    require ModPerl::MM;
    require Apache::TestMM;
  };
  if( $@ ) {
    warn $@;
    exit 0;
  }
  Apache::TestMM->import( qw(test clean) );
}

instead of

use ModPerl::MM ();
use Apache::TestMM qw(test clean);

This way no Makefile is written and the automatic test suite is happy.

Torsten


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.