Module::Install gives me gas

jjore on 2006-09-28T03:18:39

There are two things ExtUtils::MakeMaker does that Module::Install doesn't do or tries to get "wrong." I wanted to have a WriteTests.PL file run just like EU::MM would do automatically. The "work around" is putting a

system $^X, 'WriteTests.PL'
into the Makefile.PL. Oh well. There's no equivalent to EU::MM's PL_FILES feature. I don't know that I really cared about that though.

WriteTests.PL generates a bunch of templated tests in t/ but M::I's generated Makefile won't use them because unlike EU::MM it doesn't just run everything it the t/ directory: it runs only those t/*.t files that exist prior to &WriteAll.

Oh well. This is easy to work around, just kind of annoying.


Of course in these times of open repositories...

Alias on 2006-09-28T05:46:34

... it's a damned good thing that you can get commit to go fix those problems isn't it.

The pl_files(...) command sounds relatively easy to implement too.

In fact, I'm surprised it doesn't already work, since if you use a Module::Install Makefile.PL it uses ExtUtils::MakeMaker behind the scenes.

At the very least it should be fairly easy to add a custom key (i.e. PL_FILES) to what gets passed to ExtUtils::MakeMaker... there's probably a command in there already to do that.

Adam K