On Thu, Oct 25, 2007 at 07:09:01AM -0400, David Golden wrote:
> 2) Your Build.PL subclass has "use DBI" -- but that code gets loaded
> by M::B to create your subclass.  So you're guaranteed to fail if DBI
> isn't installed.  This isn't something that "build_requires" can
> address -- build_requires are only satisfied after the PL file runs.
> Instead, you have a few options:
> 
> * Use the bleeding_edge "configure_requires" option in META.yml, which
> isn't widely supported yet, that is intended to get things installed
> before calling Makefile.PL or Build.PL
> 
> * Change your "use DBI" to "require DBI" and put that inside your
> ACTION_test subroutine so it isn't called until the test phase (when
> presumably, your prerequisites pull it in).

This sounds like a good solution.

> * Move your DBI code into a PL file that gets called during the "make"
> or "Build" stage.  (I *think* that build_requires will be satisfied by
> then, but I'm not 100% sure.)
> 
> I hope these ideas are helpful.

Yes.  Thank you for taking the time to investigate for me.

-kolibrie

Attachment: signature.asc
Description: Digital signature

Reply via email to