Re: DWIM bundling

David Golden <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.module-build
Message-ID <[email protected]>
On Mon, Sep 7, 2009 at 6:21 PM, Eric Wilhelm<[email protected]> wrote:
> # from David Golden
> # on Monday 07 September 2009 14:40:
>
>>>  use lib 'inc';
>>>  use latest 'Module::Build';
>>...
>>M::I installs an "inc::Module::Install" into the normal @INC libraries
>>that allows bootstrapping the inc/ directory.  It might be worth
>>exploring that kind of approach.
>
> I would prefer to avoid its assumption about @INC ordering and contents.

That's a fair point, but hasn't M::I proved by now that it's
assumptions about @INC are reasonable?  (I don't feel strongly about
this point, btw, just exploring boundaries of the design.)

As to how to trigger the bundling, I'd suggest adding a "bundle_inc"
parameter.  Authors can either set it in Build.PL or just tack it onto
the command line: Build dist --bundle_inc

-- David
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.