Skip Menu |

This queue is for tickets about the ExtUtils-MakeMaker CPAN distribution.

Report information
The Basics
Id: 24159
Status: resolved
Priority: 0/
Queue: ExtUtils-MakeMaker

People
Owner: Nobody in particular
Requestors: leonerd-cpan [...] leonerd.org.uk
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 6.30_01
Fixed in: (no value)



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
I'd like to see this also -- right now, I have to generate META.yml manually, patch it and then suppress META.yml generation for released versions of my modules.
I've just added in the ability to manipulate the META.yml file so you can add in whatever keys you like, such as build_requires. MakeMaker currently does no checks with this information, but at least you can put it into your META.yml.
Alexandr Ciornii did the work to add BUILD_REQUIRES as well as CONFIGURE_REQUIRES. It will be in the next release.