Re: Integrating Module::Build and Dist::Zilla

[email protected] ("Christopher J. Madsen")
Newsgroups perl.module.build
Message-ID <[email protected]>
David Golden wrote:
> On Fri, Oct 2, 2009 at 2:31 PM, Christopher J. Madsen <[email protected]> wrote:
>> 3. Reconstruct the MB object.  Tempting, but as brian d foy found, it's
>> not as simple as just calling Module::Build->resume.
> 
> It should be easy in most cases.  brian was expecting Module::Build to
> remember @INC at the time Build.PL created the M::B subclass object,
> but it doesn't.  "use lib 'inc'; $mb = Module::Build->resume" should
> work.  And if it doesn't, we'll get it fixed so it does.

It doesn't look like resume does all the checks that Build does to
ensure that the _build directory is up-to-date.

>> 4. Run "./Build distmeta" then read META.yml.  I think all the
>> information I need is in META.yml, although it's possible I'll discover
>> otherwise when I actually implement this.  This has the nice side-effect
>> of creating a passthrough Makefile.PL (if configured in Build.PL).
> 
> With a recent dev release of M::B, you can just run the Build.PL file
> and a MYMETA.yml file will be created that contains all that
> information.  It's the new standard for how the toolchain can
> communicate distribution information between processes.  That might be
> sufficient for your needs.

I don't see any advantage to using MYMETA.yml for this.  I'm building
the CPAN release, so I don't want any system-specific information.  And
just running Build.PL wouldn't generate the other files that distmeta
creates.

I think I'm going to try option 4 first, and see how that works out.

-- 
Chris Madsen                                          [email protected]
  --------------------  http://www.cjmweb.net  --------------------
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.