Subject: | Please support build-time dependencies |
It would be nice if, along with PREREQ_PM, there was a way to do
build-time dependencies; maybe something like:
...
BUILDREQ_PM => {
'Test::More' => 0,
'Test::Exception' => 0,
},
...
This can then easily be written in the META.yml form of:
build_requires:
Test::More: 0
Test::Exception: 0
Having looked over the code, I believe it should be fairly easy to add;
a few lines in MM_Any.pm in the metafile_target() function, and some
parsing in the main MakeMaker file itself. Having grepped for PREREQ_PM,
there doesn't seem to be that many places it appears - I imagine a
BUILDREQ_PM would live in similar places.
I'd be happy to supply a patch to implement this, unless anyone knows of
particular reasons why it ought not be done..?
--
Paul Evans